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

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

Issue 2934523002: Revert of Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Created 3 years, 6 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/local/window_port_local.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void SetTransformFromServer(const gfx::Transform& transform) = 0; 83 virtual void SetTransformFromServer(const gfx::Transform& transform) = 0;
84 virtual void SetVisibleFromServer(bool visible) = 0; 84 virtual void SetVisibleFromServer(bool visible) = 0;
85 virtual void SetOpacityFromServer(float opacity) = 0; 85 virtual void SetOpacityFromServer(float opacity) = 0;
86 virtual void SetCursorFromServer(const ui::CursorData& cursor) = 0; 86 virtual void SetCursorFromServer(const ui::CursorData& cursor) = 0;
87 virtual void SetPropertyFromServer(const std::string& property_name, 87 virtual void SetPropertyFromServer(const std::string& property_name,
88 const std::vector<uint8_t>* data) = 0; 88 const std::vector<uint8_t>* data) = 0;
89 virtual void SetFrameSinkIdFromServer( 89 virtual void SetFrameSinkIdFromServer(
90 const cc::FrameSinkId& frame_sink_id) = 0; 90 const cc::FrameSinkId& frame_sink_id) = 0;
91 virtual const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId( 91 virtual const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
92 const gfx::Size& new_size) = 0; 92 const gfx::Size& new_size) = 0;
93 virtual void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) = 0;
93 virtual void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) = 0; 94 virtual void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) = 0;
94 // The window was deleted on the server side. DestroyFromServer() should 95 // The window was deleted on the server side. DestroyFromServer() should
95 // result in deleting |this|. 96 // result in deleting |this|.
96 virtual void DestroyFromServer() = 0; 97 virtual void DestroyFromServer() = 0;
97 virtual void AddTransientChildFromServer(WindowMus* child) = 0; 98 virtual void AddTransientChildFromServer(WindowMus* child) = 0;
98 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; 99 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0;
99 // Called when a window was added/removed as a transient child. 100 // Called when a window was added/removed as a transient child.
100 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; 101 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0;
101 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; 102 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0;
102 103
(...skipping 17 matching lines...) Expand all
120 // window (as compared to DestroyFromServer()). 121 // window (as compared to DestroyFromServer()).
121 virtual void PrepareForDestroy() = 0; 122 virtual void PrepareForDestroy() = 0;
122 123
123 // See TransientWindowClientObserver::OnWillRestackTransientChildAbove() for 124 // See TransientWindowClientObserver::OnWillRestackTransientChildAbove() for
124 // details on this and OnTransientRestackDone(). 125 // details on this and OnTransientRestackDone().
125 virtual void PrepareForTransientRestack(WindowMus* window) = 0; 126 virtual void PrepareForTransientRestack(WindowMus* window) = 0;
126 virtual void OnTransientRestackDone(WindowMus* window) = 0; 127 virtual void OnTransientRestackDone(WindowMus* window) = 0;
127 128
128 virtual void NotifyEmbeddedAppDisconnected() = 0; 129 virtual void NotifyEmbeddedAppDisconnected() = 0;
129 130
130 virtual bool HasLocalCompositorFrameSink() = 0;
131
132 private: 131 private:
133 // Just for set_server_id(), which other places should not call. 132 // Just for set_server_id(), which other places should not call.
134 friend class WindowTreeClient; 133 friend class WindowTreeClient;
135 134
136 void set_server_id(Id id) { server_id_ = id; } 135 void set_server_id(Id id) { server_id_ = id; }
137 136
138 Id server_id_ = kInvalidServerId; 137 Id server_id_ = kInvalidServerId;
139 const WindowMusType window_mus_type_; 138 const WindowMusType window_mus_type_;
140 }; 139 };
141 140
142 } // namespace aura 141 } // namespace aura
143 142
144 #endif // UI_AURA_MUS_WINDOW_MUS_H_ 143 #endif // UI_AURA_MUS_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/local/window_port_local.cc ('k') | ui/aura/mus/window_port_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698