| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MUS_NATIVE_WIDGET_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 namespace client { | 27 namespace client { |
| 28 class DefaultCaptureClient; | 28 class DefaultCaptureClient; |
| 29 class ScreenPositionClient; | 29 class ScreenPositionClient; |
| 30 class WindowTreeClient; | 30 class WindowTreeClient; |
| 31 } | 31 } |
| 32 class Window; | 32 class Window; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace mus { | 35 namespace mus { |
| 36 class Window; | 36 class Window; |
| 37 class WindowTreeConnection; | 37 class WindowTreeClient; |
| 38 namespace mojom { | 38 namespace mojom { |
| 39 enum class Cursor; | 39 enum class Cursor; |
| 40 enum class EventResult; | 40 enum class EventResult; |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace shell { | 44 namespace shell { |
| 45 class Connector; | 45 class Connector; |
| 46 } | 46 } |
| 47 | 47 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 76 mus::mojom::SurfaceType surface_type); | 76 mus::mojom::SurfaceType surface_type); |
| 77 ~NativeWidgetMus() override; | 77 ~NativeWidgetMus() override; |
| 78 | 78 |
| 79 // Configures the set of properties supplied to the window manager when | 79 // Configures the set of properties supplied to the window manager when |
| 80 // creating a new Window for a Widget. | 80 // creating a new Window for a Widget. |
| 81 static void ConfigurePropertiesForNewWindow( | 81 static void ConfigurePropertiesForNewWindow( |
| 82 const Widget::InitParams& init_params, | 82 const Widget::InitParams& init_params, |
| 83 std::map<std::string, std::vector<uint8_t>>* properties); | 83 std::map<std::string, std::vector<uint8_t>>* properties); |
| 84 | 84 |
| 85 // Notifies all widgets the frame constants changed in some way. | 85 // Notifies all widgets the frame constants changed in some way. |
| 86 static void NotifyFrameChanged(mus::WindowTreeConnection* connection); | 86 static void NotifyFrameChanged(mus::WindowTreeClient* client); |
| 87 | 87 |
| 88 // Returns the widget for a mus::Window, or null if there is none. | 88 // Returns the widget for a mus::Window, or null if there is none. |
| 89 static Widget* GetWidgetForWindow(mus::Window* window); | 89 static Widget* GetWidgetForWindow(mus::Window* window); |
| 90 | 90 |
| 91 mus::Window* window() { return window_; } | 91 mus::Window* window() { return window_; } |
| 92 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } | 92 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } |
| 93 | 93 |
| 94 aura::Window* GetRootWindow(); | 94 aura::Window* GetRootWindow(); |
| 95 | 95 |
| 96 void OnPlatformWindowClosed(); | 96 void OnPlatformWindowClosed(); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; | 269 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
| 270 std::unique_ptr<wm::CursorManager> cursor_manager_; | 270 std::unique_ptr<wm::CursorManager> cursor_manager_; |
| 271 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 271 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 272 | 272 |
| 273 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 273 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 } // namespace views | 276 } // namespace views |
| 277 | 277 |
| 278 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 278 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |