Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 public MusClientObserver, | 27 public MusClientObserver, |
| 28 public aura::WindowTreeHostMus, | 28 public aura::WindowTreeHostMus, |
| 29 public aura::EnvObserver { | 29 public aura::EnvObserver { |
| 30 public: | 30 public: |
| 31 DesktopWindowTreeHostMus( | 31 DesktopWindowTreeHostMus( |
| 32 internal::NativeWidgetDelegate* native_widget_delegate, | 32 internal::NativeWidgetDelegate* native_widget_delegate, |
| 33 DesktopNativeWidgetAura* desktop_native_widget_aura, | 33 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 34 const std::map<std::string, std::vector<uint8_t>>* mus_properties); | 34 const std::map<std::string, std::vector<uint8_t>>* mus_properties); |
| 35 ~DesktopWindowTreeHostMus() override; | 35 ~DesktopWindowTreeHostMus() override; |
| 36 | 36 |
| 37 void ServerDestroyedWindow() { CloseNow(); } | |
|
msw
2016/12/08 01:20:12
nit: move definition to cc file? Add a comment?
sky
2016/12/08 04:59:45
Added comment. As this function is nothing more th
| |
| 38 | |
| 37 private: | 39 private: |
| 38 bool IsDocked() const; | 40 bool IsDocked() const; |
| 39 | 41 |
| 40 void SendClientAreaToServer(); | 42 void SendClientAreaToServer(); |
| 41 void SendHitTestMaskToServer(); | 43 void SendHitTestMaskToServer(); |
| 42 | 44 |
| 43 // Helper function to get the scale factor. | 45 // Helper function to get the scale factor. |
| 44 float GetScaleFactor() const; | 46 float GetScaleFactor() const; |
| 45 | 47 |
| 46 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); | 48 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 | 142 |
| 141 // Used so that Close() isn't immediate. | 143 // Used so that Close() isn't immediate. |
| 142 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 144 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
| 143 | 145 |
| 144 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 146 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
| 145 }; | 147 }; |
| 146 | 148 |
| 147 } // namespace views | 149 } // namespace views |
| 148 | 150 |
| 149 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 151 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |