| 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_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_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/views_export.h" | 9 #include "ui/views/views_export.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 DesktopNativeWidgetAura* desktop_native_widget_aura, | 38 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 39 const gfx::Rect& initial_bounds); | 39 const gfx::Rect& initial_bounds); |
| 40 | 40 |
| 41 // Return the NativeTheme to use for |window|. | 41 // Return the NativeTheme to use for |window|. |
| 42 static ui::NativeTheme* GetNativeTheme(aura::Window* window); | 42 static ui::NativeTheme* GetNativeTheme(aura::Window* window); |
| 43 | 43 |
| 44 // Creates the aura resources associated with the native window we built. | 44 // Creates the aura resources associated with the native window we built. |
| 45 // Caller takes ownership of returned RootWindow. | 45 // Caller takes ownership of returned RootWindow. |
| 46 virtual aura::RootWindow* Init(aura::Window* content_window, | 46 virtual aura::RootWindow* Init(aura::Window* content_window, |
| 47 const Widget::InitParams& params) = 0; | 47 const Widget::InitParams& params) = 0; |
| 48 virtual void InitFocus(aura::Window* window) = 0; |
| 48 | 49 |
| 49 virtual void Close() = 0; | 50 virtual void Close() = 0; |
| 50 virtual void CloseNow() = 0; | 51 virtual void CloseNow() = 0; |
| 51 | 52 |
| 52 virtual aura::RootWindowHost* AsRootWindowHost() = 0; | 53 virtual aura::RootWindowHost* AsRootWindowHost() = 0; |
| 53 | 54 |
| 54 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; | 55 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; |
| 55 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; | 56 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; |
| 56 | 57 |
| 57 virtual bool IsVisible() const = 0; | 58 virtual bool IsVisible() const = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 // Called when the DesktopNativeWidgetAura's aura::Window is focused and | 112 // Called when the DesktopNativeWidgetAura's aura::Window is focused and |
| 112 // blurred. | 113 // blurred. |
| 113 virtual void OnNativeWidgetFocus() = 0; | 114 virtual void OnNativeWidgetFocus() = 0; |
| 114 virtual void OnNativeWidgetBlur() = 0; | 115 virtual void OnNativeWidgetBlur() = 0; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace views | 118 } // namespace views |
| 118 | 119 |
| 119 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ | 120 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ |
| OLD | NEW |