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_AURA_MUS_WINDOW_MUS_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_MUS_H_ |
6 #define UI_AURA_MUS_WINDOW_MUS_H_ | 6 #define UI_AURA_MUS_WINDOW_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 WindowMus* relative, | 74 WindowMus* relative, |
75 ui::mojom::OrderDirection) = 0; | 75 ui::mojom::OrderDirection) = 0; |
76 virtual void SetBoundsFromServer(const gfx::Rect& bounds) = 0; | 76 virtual void SetBoundsFromServer(const gfx::Rect& bounds) = 0; |
77 virtual void SetVisibleFromServer(bool visible) = 0; | 77 virtual void SetVisibleFromServer(bool visible) = 0; |
78 virtual void SetOpacityFromServer(float opacity) = 0; | 78 virtual void SetOpacityFromServer(float opacity) = 0; |
79 virtual void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) = 0; | 79 virtual void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) = 0; |
80 virtual void SetPropertyFromServer(const std::string& property_name, | 80 virtual void SetPropertyFromServer(const std::string& property_name, |
81 const std::vector<uint8_t>* data) = 0; | 81 const std::vector<uint8_t>* data) = 0; |
82 virtual void SetSurfaceIdFromServer( | 82 virtual void SetSurfaceIdFromServer( |
83 std::unique_ptr<SurfaceInfo> surface_info) = 0; | 83 std::unique_ptr<SurfaceInfo> surface_info) = 0; |
| 84 // The window was deleted on the server side. DestroyFromServer() should |
| 85 // result in deleting |this|. |
| 86 virtual void DestroyFromServer() = 0; |
84 virtual void AddTransientChildFromServer(WindowMus* child) = 0; | 87 virtual void AddTransientChildFromServer(WindowMus* child) = 0; |
85 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; | 88 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; |
86 // Called when a window was added/removed as a transient child. | 89 // Called when a window was added/removed as a transient child. |
87 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; | 90 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; |
88 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; | 91 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; |
89 | 92 |
90 // Called in the rare case when WindowTreeClient needs to change state and | 93 // Called in the rare case when WindowTreeClient needs to change state and |
91 // can't go through one of the SetFooFromServer() functions above. Generally | 94 // can't go through one of the SetFooFromServer() functions above. Generally |
92 // because it needs to call another function that as a side effect changes the | 95 // because it needs to call another function that as a side effect changes the |
93 // window. Once the call to the underlying window has completed the returned | 96 // window. Once the call to the underlying window has completed the returned |
(...skipping 11 matching lines...) Expand all Loading... |
105 | 108 |
106 void set_server_id(Id id) { server_id_ = id; } | 109 void set_server_id(Id id) { server_id_ = id; } |
107 | 110 |
108 Id server_id_ = kInvalidServerId; | 111 Id server_id_ = kInvalidServerId; |
109 const WindowMusType window_mus_type_; | 112 const WindowMusType window_mus_type_; |
110 }; | 113 }; |
111 | 114 |
112 } // namespace aura | 115 } // namespace aura |
113 | 116 |
114 #endif // UI_AURA_MUS_WINDOW_MUS_H_ | 117 #endif // UI_AURA_MUS_WINDOW_MUS_H_ |
OLD | NEW |