| 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 12 matching lines...) Expand all Loading... |
| 23 public MusClientObserver, | 23 public MusClientObserver, |
| 24 public aura::WindowTreeHostMus, | 24 public aura::WindowTreeHostMus, |
| 25 public aura::EnvObserver { | 25 public aura::EnvObserver { |
| 26 public: | 26 public: |
| 27 DesktopWindowTreeHostMus( | 27 DesktopWindowTreeHostMus( |
| 28 internal::NativeWidgetDelegate* native_widget_delegate, | 28 internal::NativeWidgetDelegate* native_widget_delegate, |
| 29 DesktopNativeWidgetAura* desktop_native_widget_aura, | 29 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 30 const std::map<std::string, std::vector<uint8_t>>* mus_properties); | 30 const std::map<std::string, std::vector<uint8_t>>* mus_properties); |
| 31 ~DesktopWindowTreeHostMus() override; | 31 ~DesktopWindowTreeHostMus() override; |
| 32 | 32 |
| 33 // Returns a bitmask of the resize types. See ui::mojom::kResizeBehavior. |
| 34 // |delegate| may be null. |
| 35 static int32_t GetResizeBehaviorFromDelegate(WidgetDelegate* delegate); |
| 36 |
| 33 private: | 37 private: |
| 34 bool IsDocked() const; | 38 bool IsDocked() const; |
| 35 | 39 |
| 36 void SendClientAreaToServer(); | 40 void SendClientAreaToServer(); |
| 37 void SendHitTestMaskToServer(); | 41 void SendHitTestMaskToServer(); |
| 38 | 42 |
| 39 // Helper function to get the scale factor. | 43 // Helper function to get the scale factor. |
| 40 float GetScaleFactor() const; | 44 float GetScaleFactor() const; |
| 41 | 45 |
| 42 void SetBoundsInDips(const gfx::Rect& bounds_in_dips); | 46 void SetBoundsInDips(const gfx::Rect& bounds_in_dips); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 136 |
| 133 // Used so that Close() isn't immediate. | 137 // Used so that Close() isn't immediate. |
| 134 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 138 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
| 135 | 139 |
| 136 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 140 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
| 137 }; | 141 }; |
| 138 | 142 |
| 139 } // namespace views | 143 } // namespace views |
| 140 | 144 |
| 141 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 145 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |