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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Configures the set of properties supplied to the window manager when | 66 // Configures the set of properties supplied to the window manager when |
67 // creating a new Window for a Widget. | 67 // creating a new Window for a Widget. |
68 static void ConfigurePropertiesForNewWindow( | 68 static void ConfigurePropertiesForNewWindow( |
69 const Widget::InitParams& init_params, | 69 const Widget::InitParams& init_params, |
70 std::map<std::string, std::vector<uint8_t>>* properties); | 70 std::map<std::string, std::vector<uint8_t>>* properties); |
71 | 71 |
72 // Notifies all widgets the frame constants changed in some way. | 72 // Notifies all widgets the frame constants changed in some way. |
73 static void NotifyFrameChanged(mus::WindowTreeConnection* connection); | 73 static void NotifyFrameChanged(mus::WindowTreeConnection* connection); |
74 | 74 |
75 mus::Window* window() { return window_; } | 75 mus::Window* window() { return window_; } |
| 76 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } |
76 | 77 |
77 aura::Window* GetRootWindow(); | 78 aura::Window* GetRootWindow(); |
78 | 79 |
79 void OnPlatformWindowClosed(); | 80 void OnPlatformWindowClosed(); |
80 void OnActivationChanged(bool active); | 81 void OnActivationChanged(bool active); |
81 | 82 |
82 protected: | 83 protected: |
83 // Updates the client area in the mus::Window. | 84 // Updates the client area in the mus::Window. |
84 virtual void UpdateClientArea(); | 85 virtual void UpdateClientArea(); |
85 | 86 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_; | 229 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_; |
229 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; | 230 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
230 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 231 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
231 | 232 |
232 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
233 }; | 234 }; |
234 | 235 |
235 } // namespace views | 236 } // namespace views |
236 | 237 |
237 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 238 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
OLD | NEW |