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 } | 27 } |
28 class Window; | 28 class Window; |
29 } | 29 } |
30 | 30 |
31 namespace mojo { | 31 namespace mojo { |
32 class Shell; | 32 class Shell; |
33 } | 33 } |
34 | 34 |
35 namespace mus { | 35 namespace mus { |
36 class Window; | 36 class Window; |
| 37 class WindowTreeConnection; |
37 | 38 |
38 namespace mojom { | 39 namespace mojom { |
39 class WindowManager; | 40 class WindowManager; |
40 } | 41 } |
41 } | 42 } |
42 | 43 |
43 namespace wm { | 44 namespace wm { |
44 class FocusController; | 45 class FocusController; |
45 } | 46 } |
46 | 47 |
(...skipping 18 matching lines...) Expand all Loading... |
65 mus::Window* window, | 66 mus::Window* window, |
66 mus::mojom::SurfaceType surface_type); | 67 mus::mojom::SurfaceType surface_type); |
67 ~NativeWidgetMus() override; | 68 ~NativeWidgetMus() override; |
68 | 69 |
69 // Configures the set of properties supplied to the window manager when | 70 // Configures the set of properties supplied to the window manager when |
70 // creating a new Window for a Widget. | 71 // creating a new Window for a Widget. |
71 static void ConfigurePropertiesForNewWindow( | 72 static void ConfigurePropertiesForNewWindow( |
72 const Widget::InitParams& init_params, | 73 const Widget::InitParams& init_params, |
73 std::map<std::string, std::vector<uint8_t>>* properties); | 74 std::map<std::string, std::vector<uint8_t>>* properties); |
74 | 75 |
| 76 // Notifies all widgets the frame constants changed in some way. |
| 77 static void NotifyFrameChanged(mus::WindowTreeConnection* connection); |
| 78 |
75 mus::Window* window() { return window_; } | 79 mus::Window* window() { return window_; } |
76 | 80 |
77 void OnPlatformWindowClosed(); | 81 void OnPlatformWindowClosed(); |
78 void OnActivationChanged(bool active); | 82 void OnActivationChanged(bool active); |
79 | 83 |
80 protected: | 84 protected: |
81 // Updates the client area in the mus::Window. | 85 // Updates the client area in the mus::Window. |
82 virtual void UpdateClientArea(); | 86 virtual void UpdateClientArea(); |
83 | 87 |
84 // internal::NativeWidgetPrivate: | 88 // internal::NativeWidgetPrivate: |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 222 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
219 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; | 223 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; |
220 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 224 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
221 | 225 |
222 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
223 }; | 227 }; |
224 | 228 |
225 } // namespace views | 229 } // namespace views |
226 | 230 |
227 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 231 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
OLD | NEW |