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 21 matching lines...) Expand all Loading... |
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. | 39 // Helper function to get the scale factor. |
40 float GetScaleFactor() const; | 40 float GetScaleFactor() const; |
41 | 41 |
42 void SetBoundsInDips(const gfx::Rect& bounds_in_dips); | 42 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); |
43 | 43 |
44 // DesktopWindowTreeHost: | 44 // DesktopWindowTreeHost: |
45 void Init(aura::Window* content_window, | 45 void Init(aura::Window* content_window, |
46 const Widget::InitParams& params) override; | 46 const Widget::InitParams& params) override; |
47 void OnNativeWidgetCreated(const Widget::InitParams& params) override; | 47 void OnNativeWidgetCreated(const Widget::InitParams& params) override; |
48 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; | 48 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; |
49 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( | 49 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( |
50 DesktopNativeCursorManager* cursor_manager) override; | 50 DesktopNativeCursorManager* cursor_manager) override; |
51 void Close() override; | 51 void Close() override; |
52 void CloseNow() override; | 52 void CloseNow() override; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 // Used so that Close() isn't immediate. | 133 // Used so that Close() isn't immediate. |
134 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 134 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 136 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace views | 139 } // namespace views |
140 | 140 |
141 #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 |