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