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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Called when the window was deleted on the server. | 41 // Called when the window was deleted on the server. |
42 void ServerDestroyedWindow() { CloseNow(); } | 42 void ServerDestroyedWindow() { CloseNow(); } |
43 | 43 |
44 // Controls whether the client area is automatically updated as necessary. | 44 // Controls whether the client area is automatically updated as necessary. |
45 void set_auto_update_client_area(bool value) { | 45 void set_auto_update_client_area(bool value) { |
46 auto_update_client_area_ = value; | 46 auto_update_client_area_ = value; |
47 } | 47 } |
48 | 48 |
49 private: | 49 private: |
50 bool IsDocked() const; | |
51 | |
52 void SendClientAreaToServer(); | 50 void SendClientAreaToServer(); |
53 void SendHitTestMaskToServer(); | 51 void SendHitTestMaskToServer(); |
54 | 52 |
55 // Helper function to get the scale factor. | 53 // Helper function to get the scale factor. |
56 float GetScaleFactor() const; | 54 float GetScaleFactor() const; |
57 | 55 |
58 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); | 56 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); |
59 | 57 |
60 // Returns true if the client area should be set on this. | 58 // Returns true if the client area should be set on this. |
61 bool ShouldSendClientAreaToServer() const; | 59 bool ShouldSendClientAreaToServer() const; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 162 |
165 // Used so that Close() isn't immediate. | 163 // Used so that Close() isn't immediate. |
166 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 164 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
167 | 165 |
168 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 166 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
169 }; | 167 }; |
170 | 168 |
171 } // namespace views | 169 } // namespace views |
172 | 170 |
173 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 171 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
OLD | NEW |