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