| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 ui::mojom::SurfaceType surface_type() const { return surface_type_; } | 88 ui::mojom::SurfaceType surface_type() const { return surface_type_; } |
| 89 ui::Window* window() { return window_; } | 89 ui::Window* window() { return window_; } |
| 90 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } | 90 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); } |
| 91 | 91 |
| 92 aura::Window* GetRootWindow(); | 92 aura::Window* GetRootWindow(); |
| 93 | 93 |
| 94 void OnPlatformWindowClosed(); | 94 void OnPlatformWindowClosed(); |
| 95 void OnActivationChanged(bool active); | 95 void OnActivationChanged(bool active); |
| 96 | 96 |
| 97 protected: | 97 public: |
| 98 // Updates the client area in the ui::Window. | 98 // Updates the client area in the ui::Window. |
| 99 virtual void UpdateClientArea(); | 99 virtual void UpdateClientArea(); |
| 100 | 100 |
| 101 // internal::NativeWidgetPrivate: | 101 // internal::NativeWidgetPrivate: |
| 102 NonClientFrameView* CreateNonClientFrameView() override; | 102 NonClientFrameView* CreateNonClientFrameView() override; |
| 103 void InitNativeWidget(const Widget::InitParams& params) override; | 103 void InitNativeWidget(const Widget::InitParams& params) override; |
| 104 void OnWidgetInitDone() override; | 104 void OnWidgetInitDone() override; |
| 105 bool ShouldUseNativeFrame() const override; | 105 bool ShouldUseNativeFrame() const override; |
| 106 bool ShouldWindowContentsBeTransparent() const override; | 106 bool ShouldWindowContentsBeTransparent() const override; |
| 107 void FrameTypeChanged() override; | 107 void FrameTypeChanged() override; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 std::unique_ptr<wm::CursorManager> cursor_manager_; | 282 std::unique_ptr<wm::CursorManager> cursor_manager_; |
| 283 | 283 |
| 284 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 284 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 285 | 285 |
| 286 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 286 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 } // namespace views | 289 } // namespace views |
| 290 | 290 |
| 291 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 291 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |