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

Unified Diff: ui/aura/mus/window_mus.h

Issue 2456843004: Wires up transient windows for aura-mus (Closed)
Patch Set: relative to master Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/aura/mus/window_port_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_mus.h
diff --git a/ui/aura/mus/window_mus.h b/ui/aura/mus/window_mus.h
index ef05ca6beaf75844139681c83c0fef030e8e33f6..13018ca58b69dfbb27541ead3b19a6ffbf5f79b1 100644
--- a/ui/aura/mus/window_mus.h
+++ b/ui/aura/mus/window_mus.h
@@ -45,6 +45,14 @@ struct AURA_EXPORT WindowMusChangeData {
// change the bounds too. See WindowPortMus for details.
class AURA_EXPORT WindowMus {
public:
+
+ enum class ChangeSource {
+ // The change was made locally.
+ LOCAL,
+ // The change originated from the server.
+ SERVER,
+ };
+
// |create_remote_window| indicates whether a window should be created on the
// server. Generally |create_remote_window| should be true, only in rare
// exceptions (such as the root of a WindowTreeHost) is it false.
@@ -85,6 +93,11 @@ class AURA_EXPORT WindowMus {
const std::vector<uint8_t>* data) = 0;
virtual void SetSurfaceIdFromServer(
std::unique_ptr<SurfaceInfo> surface_info) = 0;
+ virtual void AddTransientChildFromServer(WindowMus* child) = 0;
+ virtual void RemoveTransientChildFromServer(WindowMus* child) = 0;
+ // Called when a window was added/removed as a transient child.
+ virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0;
+ virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0;
// Called in the rare case when WindowTreeClient needs to change state and
// can't go through one of the SetFooFromServer() functions above. Generally
« no previous file with comments | « no previous file | ui/aura/mus/window_port_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698