Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: ui/aura/mus/window_mus.h

Issue 2764433003: mus-ws: Plumb FrameSinkId to Children (Closed)
Patch Set: Addressed Antoine's comment Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/mus/mus_context_factory.cc ('k') | ui/aura/mus/window_port_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void RemoveChildFromServer(WindowMus* child) = 0; 75 virtual void RemoveChildFromServer(WindowMus* child) = 0;
76 virtual void ReorderFromServer(WindowMus* child, 76 virtual void ReorderFromServer(WindowMus* child,
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(
86 const cc::FrameSinkId& frame_sink_id) = 0;
85 virtual void SetSurfaceInfoFromServer( 87 virtual void SetSurfaceInfoFromServer(
86 const cc::SurfaceInfo& surface_info) = 0; 88 const cc::SurfaceInfo& surface_info) = 0;
87 // The window was deleted on the server side. DestroyFromServer() should 89 // The window was deleted on the server side. DestroyFromServer() should
88 // result in deleting |this|. 90 // result in deleting |this|.
89 virtual void DestroyFromServer() = 0; 91 virtual void DestroyFromServer() = 0;
90 virtual void AddTransientChildFromServer(WindowMus* child) = 0; 92 virtual void AddTransientChildFromServer(WindowMus* child) = 0;
91 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; 93 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0;
92 // Called when a window was added/removed as a transient child. 94 // Called when a window was added/removed as a transient child.
93 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; 95 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0;
94 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; 96 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0;
(...skipping 26 matching lines...) Expand all
121 123
122 void set_server_id(Id id) { server_id_ = id; } 124 void set_server_id(Id id) { server_id_ = id; }
123 125
124 Id server_id_ = kInvalidServerId; 126 Id server_id_ = kInvalidServerId;
125 const WindowMusType window_mus_type_; 127 const WindowMusType window_mus_type_;
126 }; 128 };
127 129
128 } // namespace aura 130 } // namespace aura
129 131
130 #endif // UI_AURA_MUS_WINDOW_MUS_H_ 132 #endif // UI_AURA_MUS_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/mus_context_factory.cc ('k') | ui/aura/mus/window_port_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698