| 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_WINDOW_TREE_HOST_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ui/aura/window_event_dispatcher.h" | 10 #include "ui/aura/window_event_dispatcher.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 internal::NativeWidgetDelegate* native_widget_delegate, | 46 internal::NativeWidgetDelegate* native_widget_delegate, |
| 47 DesktopNativeWidgetAura* desktop_native_widget_aura); | 47 DesktopNativeWidgetAura* desktop_native_widget_aura); |
| 48 | 48 |
| 49 // Sets up resources needed before the WindowEventDispatcher has been created. | 49 // Sets up resources needed before the WindowEventDispatcher has been created. |
| 50 virtual void Init(aura::Window* content_window, | 50 virtual void Init(aura::Window* content_window, |
| 51 const Widget::InitParams& params) = 0; | 51 const Widget::InitParams& params) = 0; |
| 52 | 52 |
| 53 // Invoked once the DesktopNativeWidgetAura has been created. | 53 // Invoked once the DesktopNativeWidgetAura has been created. |
| 54 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0; | 54 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0; |
| 55 | 55 |
| 56 // Called from DesktopNativeWidgetAura::OnWidgetInitDone(). |
| 57 virtual void OnWidgetInitDone() = 0; |
| 58 |
| 56 // Creates and returns the Tooltip implementation to use. Return value is | 59 // Creates and returns the Tooltip implementation to use. Return value is |
| 57 // owned by DesktopNativeWidgetAura and lives as long as | 60 // owned by DesktopNativeWidgetAura and lives as long as |
| 58 // DesktopWindowTreeHost. | 61 // DesktopWindowTreeHost. |
| 59 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0; | 62 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0; |
| 60 | 63 |
| 61 // Creates and returns the DragDropClient implementation to use. Return value | 64 // Creates and returns the DragDropClient implementation to use. Return value |
| 62 // is owned by DesktopNativeWidgetAura and lives as long as | 65 // is owned by DesktopNativeWidgetAura and lives as long as |
| 63 // DesktopWindowTreeHost. | 66 // DesktopWindowTreeHost. |
| 64 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( | 67 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( |
| 65 DesktopNativeCursorManager* cursor_manager) = 0; | 68 DesktopNativeCursorManager* cursor_manager) = 0; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 161 |
| 159 // A return value of true indicates DesktopNativeCursorManager should be | 162 // A return value of true indicates DesktopNativeCursorManager should be |
| 160 // used, a return value of false indicates the DesktopWindowTreeHost manages | 163 // used, a return value of false indicates the DesktopWindowTreeHost manages |
| 161 // cursors itself. | 164 // cursors itself. |
| 162 virtual bool ShouldUseDesktopNativeCursorManager() const = 0; | 165 virtual bool ShouldUseDesktopNativeCursorManager() const = 0; |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 } // namespace views | 168 } // namespace views |
| 166 | 169 |
| 167 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ | 170 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ |
| OLD | NEW |