| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // WindowTreeHostMus: | 93 // WindowTreeHostMus: |
| 94 void ShowImpl() override; | 94 void ShowImpl() override; |
| 95 void HideImpl() override; | 95 void HideImpl() override; |
| 96 void SetBounds(const gfx::Rect& bounds_in_pixels) override; | 96 void SetBounds(const gfx::Rect& bounds_in_pixels) override; |
| 97 | 97 |
| 98 // aura::EnvObserver: | 98 // aura::EnvObserver: |
| 99 void OnWindowInitialized(aura::Window* window) override; | 99 void OnWindowInitialized(aura::Window* window) override; |
| 100 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, | 100 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, |
| 101 aura::Window* window) override; | 101 aura::Window* window) override; |
| 102 | 102 |
| 103 // Helper function to get the scale factor. |
| 104 float GetScaleFactor() const; |
| 105 |
| 103 internal::NativeWidgetDelegate* native_widget_delegate_; | 106 internal::NativeWidgetDelegate* native_widget_delegate_; |
| 104 | 107 |
| 105 DesktopNativeWidgetAura* desktop_native_widget_aura_; | 108 DesktopNativeWidgetAura* desktop_native_widget_aura_; |
| 106 | 109 |
| 107 // State to restore window to when exiting fullscreen. Only valid if | 110 // State to restore window to when exiting fullscreen. Only valid if |
| 108 // fullscreen. | 111 // fullscreen. |
| 109 ui::WindowShowState fullscreen_restore_state_; | 112 ui::WindowShowState fullscreen_restore_state_; |
| 110 | 113 |
| 111 // We can optionally have a parent which can order us to close, or own | 114 // We can optionally have a parent which can order us to close, or own |
| 112 // children who we're responsible for closing when we CloseNow(). | 115 // children who we're responsible for closing when we CloseNow(). |
| 113 DesktopWindowTreeHostMus* parent_ = nullptr; | 116 DesktopWindowTreeHostMus* parent_ = nullptr; |
| 114 std::set<DesktopWindowTreeHostMus*> children_; | 117 std::set<DesktopWindowTreeHostMus*> children_; |
| 115 | 118 |
| 116 bool is_active_ = false; | 119 bool is_active_ = false; |
| 117 | 120 |
| 118 // Used so that Close() isn't immediate. | 121 // Used so that Close() isn't immediate. |
| 119 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 122 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 124 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 } // namespace views | 127 } // namespace views |
| 125 | 128 |
| 126 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 129 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |