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 UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ |
7 | 7 |
8 #include "ui/base/ui_base_types.h" | 8 #include "ui/base/ui_base_types.h" |
9 #include "ui/views/widget/widget.h" | 9 #include "ui/views/widget/widget.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
| 12 class RootWindowHost; |
12 class Window; | 13 class Window; |
13 } | 14 } |
14 | 15 |
15 namespace gfx { | 16 namespace gfx { |
16 class Rect; | 17 class Rect; |
17 } | 18 } |
18 | 19 |
19 namespace views { | 20 namespace views { |
20 namespace internal { | 21 namespace internal { |
21 class NativeWidgetDelegate; | 22 class NativeWidgetDelegate; |
22 } | 23 } |
23 | 24 |
24 class DesktopRootWindowHost { | 25 class DesktopRootWindowHost { |
25 public: | 26 public: |
26 virtual ~DesktopRootWindowHost() {} | 27 virtual ~DesktopRootWindowHost() {} |
27 | 28 |
28 static DesktopRootWindowHost* Create( | 29 static DesktopRootWindowHost* Create( |
29 internal::NativeWidgetDelegate* native_widget_delegate, | 30 internal::NativeWidgetDelegate* native_widget_delegate, |
30 const gfx::Rect& initial_bounds); | 31 const gfx::Rect& initial_bounds); |
31 | 32 |
32 virtual void Init(aura::Window* content_window, | 33 virtual void Init(aura::Window* content_window, |
33 const Widget::InitParams& params) = 0; | 34 const Widget::InitParams& params) = 0; |
34 | 35 |
| 36 virtual void Close() = 0; |
| 37 virtual void CloseNow() = 0; |
| 38 |
| 39 virtual aura::RootWindowHost* AsRootWindowHost() = 0; |
| 40 |
35 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; | 41 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; |
| 42 |
| 43 virtual bool IsVisible() const = 0; |
| 44 |
| 45 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; |
36 }; | 46 }; |
37 | 47 |
38 } // namespace views | 48 } // namespace views |
39 | 49 |
40 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ | 50 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_H_ |
OLD | NEW |