1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_FRAME_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_FRAME_VIEW_MAC_H_
8 #include "ui/views/window/native_frame_view.h"
10 namespace extensions
{
11 class NativeAppWindow
;
16 // Provides metrics consistent with a native frame on Mac. The actual frame is
18 class NativeAppWindowFrameViewMac
: public views::NativeFrameView
{
20 NativeAppWindowFrameViewMac(views::Widget
* frame
,
21 extensions::NativeAppWindow
* window
);
22 ~NativeAppWindowFrameViewMac() override
;
24 // NonClientFrameView:
25 gfx::Rect
GetWindowBoundsForClientBounds(
26 const gfx::Rect
& client_bounds
) const override
;
27 int NonClientHitTest(const gfx::Point
& point
) override
;
30 // Weak. Owned by extensions::AppWindow (which manages our Widget via its
32 extensions::NativeAppWindow
* native_app_window_
;
34 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowFrameViewMac
);
37 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_FRAME_VIEW_MAC_H_