| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ |
| 7 | 7 |
| 8 class BrowserFrame; | 8 class BrowserFrame; |
| 9 class BrowserView; | 9 class BrowserView; |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Rect; | 11 class Rect; |
| 12 } | 12 } |
| 13 namespace views { | 13 namespace views { |
| 14 class DesktopNativeWidgetAura; | 14 class DesktopNativeWidgetAura; |
| 15 class DesktopRootWindowHost; | 15 class DesktopRootWindowHost; |
| 16 namespace internal { | 16 namespace internal { |
| 17 class NativeWidgetDelegate; | 17 class NativeWidgetDelegate; |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Interface to a platform specific browser frame implementation. The object | 21 // Interface to a platform specific browser frame implementation. The object |
| 22 // implementing this interface will also implement views::DesktopRootWindowHost. | 22 // implementing this interface will also implement views::DesktopRootWindowHost. |
| 23 class BrowserDesktopRootWindowHost { | 23 class BrowserDesktopRootWindowHost { |
| 24 public: | 24 public: |
| 25 // BDRWH is owned by the RootWindow. | 25 // BDRWH is owned by the RootWindow. |
| 26 static BrowserDesktopRootWindowHost* CreateBrowserDesktopRootWindowHost( | 26 static BrowserDesktopRootWindowHost* CreateBrowserDesktopRootWindowHost( |
| 27 views::internal::NativeWidgetDelegate* native_widget_delegate, | 27 views::internal::NativeWidgetDelegate* native_widget_delegate, |
| 28 views::DesktopNativeWidgetAura* desktop_native_widget_aura, | 28 views::DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 29 const gfx::Rect& initial_bounds, | |
| 30 BrowserView* browser_view, | 29 BrowserView* browser_view, |
| 31 BrowserFrame* browser_frame); | 30 BrowserFrame* browser_frame); |
| 32 | 31 |
| 33 virtual views::DesktopRootWindowHost* AsDesktopRootWindowHost() = 0; | 32 virtual views::DesktopRootWindowHost* AsDesktopRootWindowHost() = 0; |
| 34 | 33 |
| 35 virtual int GetMinimizeButtonOffset() const = 0; | 34 virtual int GetMinimizeButtonOffset() const = 0; |
| 36 | 35 |
| 37 // Returns true if the OS takes care of showing the system menu. Returning | 36 // Returns true if the OS takes care of showing the system menu. Returning |
| 38 // false means BrowserFrame handles showing the system menu. | 37 // false means BrowserFrame handles showing the system menu. |
| 39 virtual bool UsesNativeSystemMenu() const = 0; | 38 virtual bool UsesNativeSystemMenu() const = 0; |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 | 41 |
| 43 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ | 42 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_H_ |
| OLD | NEW |