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_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 WindowMus* relative, | 77 WindowMus* relative, |
| 78 ui::mojom::OrderDirection) = 0; | 78 ui::mojom::OrderDirection) = 0; |
| 79 virtual void SetBoundsFromServer(const gfx::Rect& bounds) = 0; | 79 virtual void SetBoundsFromServer(const gfx::Rect& bounds) = 0; |
| 80 virtual void SetVisibleFromServer(bool visible) = 0; | 80 virtual void SetVisibleFromServer(bool visible) = 0; |
| 81 virtual void SetOpacityFromServer(float opacity) = 0; | 81 virtual void SetOpacityFromServer(float opacity) = 0; |
| 82 virtual void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) = 0; | 82 virtual void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) = 0; |
| 83 virtual void SetPropertyFromServer(const std::string& property_name, | 83 virtual void SetPropertyFromServer(const std::string& property_name, |
| 84 const std::vector<uint8_t>* data) = 0; | 84 const std::vector<uint8_t>* data) = 0; |
| 85 virtual void SetFrameSinkIdFromServer( | 85 virtual void SetFrameSinkIdFromServer( |
| 86 const cc::FrameSinkId& frame_sink_id) = 0; | 86 const cc::FrameSinkId& frame_sink_id) = 0; |
| 87 virtual const cc::LocalSurfaceId& GetLocalSurfaceId() = 0; | |
|
sky
2017/03/29 00:07:35
Move this beneath all the other SetFooFromServer f
Fady Samuel
2017/03/29 22:10:14
Done.
| |
| 88 virtual const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId( | |
| 89 const gfx::Size& new_size) = 0; | |
| 87 virtual void SetSurfaceInfoFromServer( | 90 virtual void SetSurfaceInfoFromServer( |
| 88 const cc::SurfaceInfo& surface_info) = 0; | 91 const cc::SurfaceInfo& surface_info) = 0; |
| 89 // The window was deleted on the server side. DestroyFromServer() should | 92 // The window was deleted on the server side. DestroyFromServer() should |
| 90 // result in deleting |this|. | 93 // result in deleting |this|. |
| 91 virtual void DestroyFromServer() = 0; | 94 virtual void DestroyFromServer() = 0; |
| 92 virtual void AddTransientChildFromServer(WindowMus* child) = 0; | 95 virtual void AddTransientChildFromServer(WindowMus* child) = 0; |
| 93 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; | 96 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; |
| 94 // Called when a window was added/removed as a transient child. | 97 // Called when a window was added/removed as a transient child. |
| 95 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; | 98 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; |
| 96 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; | 99 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 123 | 126 |
| 124 void set_server_id(Id id) { server_id_ = id; } | 127 void set_server_id(Id id) { server_id_ = id; } |
| 125 | 128 |
| 126 Id server_id_ = kInvalidServerId; | 129 Id server_id_ = kInvalidServerId; |
| 127 const WindowMusType window_mus_type_; | 130 const WindowMusType window_mus_type_; |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 } // namespace aura | 133 } // namespace aura |
| 131 | 134 |
| 132 #endif // UI_AURA_MUS_WINDOW_MUS_H_ | 135 #endif // UI_AURA_MUS_WINDOW_MUS_H_ |
| OLD | NEW |