| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Returns the native widget for a ui::Window, or null if there is none. | 92 // Returns the native widget for a ui::Window, or null if there is none. |
| 93 static NativeWidgetMus* GetForWindow(ui::Window* window); | 93 static NativeWidgetMus* GetForWindow(ui::Window* window); |
| 94 | 94 |
| 95 // Returns the widget for a ui::Window, or null if there is none. | 95 // Returns the widget for a ui::Window, or null if there is none. |
| 96 static Widget* GetWidgetForWindow(ui::Window* window); | 96 static Widget* GetWidgetForWindow(ui::Window* window); |
| 97 | 97 |
| 98 ui::mojom::CompositorFrameSinkType compositor_frame_sink_type() const { | 98 ui::mojom::CompositorFrameSinkType compositor_frame_sink_type() const { |
| 99 return compositor_frame_sink_type_; | 99 return compositor_frame_sink_type_; |
| 100 } | 100 } |
| 101 ui::Window* window() { return window_; } | 101 ui::Window* window() { return window_; } |
| 102 aura::Window* aura_window() { return content_; } |
| 102 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } | 103 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } |
| 103 | 104 |
| 104 aura::Window* GetRootWindow(); | 105 aura::Window* GetRootWindow(); |
| 105 | 106 |
| 106 void OnPlatformWindowClosed(); | 107 void OnPlatformWindowClosed(); |
| 107 void OnActivationChanged(bool active); | 108 void OnActivationChanged(bool active); |
| 108 | 109 |
| 109 protected: | 110 protected: |
| 110 // Updates the client area in the ui::Window. | 111 // Updates the client area in the ui::Window. |
| 111 virtual void UpdateClientArea(); | 112 virtual void UpdateClientArea(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 std::unique_ptr<InputMethodMus> input_method_; | 306 std::unique_ptr<InputMethodMus> input_method_; |
| 306 | 307 |
| 307 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 308 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 308 | 309 |
| 309 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 310 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 310 }; | 311 }; |
| 311 | 312 |
| 312 } // namespace views | 313 } // namespace views |
| 313 | 314 |
| 314 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 315 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |