| 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 18 matching lines...) Expand all Loading... |
| 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 private: | 33 private: |
| 34 bool IsDocked() const; | 34 bool IsDocked() const; |
| 35 | 35 |
| 36 void SendClientAreaToServer(); | 36 void SendClientAreaToServer(); |
| 37 void SendHitTestMaskToServer(); | 37 void SendHitTestMaskToServer(); |
| 38 | 38 |
| 39 // Helper function to get the scale factor. |
| 40 float GetScaleFactor() const; |
| 41 |
| 42 void SetBoundsInDips(const gfx::Rect& bounds_in_dips); |
| 43 |
| 39 // DesktopWindowTreeHost: | 44 // DesktopWindowTreeHost: |
| 40 void Init(aura::Window* content_window, | 45 void Init(aura::Window* content_window, |
| 41 const Widget::InitParams& params) override; | 46 const Widget::InitParams& params) override; |
| 42 void OnNativeWidgetCreated(const Widget::InitParams& params) override; | 47 void OnNativeWidgetCreated(const Widget::InitParams& params) override; |
| 43 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; | 48 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; |
| 44 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( | 49 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( |
| 45 DesktopNativeCursorManager* cursor_manager) override; | 50 DesktopNativeCursorManager* cursor_manager) override; |
| 46 void Close() override; | 51 void Close() override; |
| 47 void CloseNow() override; | 52 void CloseNow() override; |
| 48 aura::WindowTreeHost* AsWindowTreeHost() override; | 53 aura::WindowTreeHost* AsWindowTreeHost() override; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 132 |
| 128 // Used so that Close() isn't immediate. | 133 // Used so that Close() isn't immediate. |
| 129 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 134 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
| 130 | 135 |
| 131 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 136 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
| 132 }; | 137 }; |
| 133 | 138 |
| 134 } // namespace views | 139 } // namespace views |
| 135 | 140 |
| 136 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 141 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |