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

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

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize 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/in_flight_change.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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "services/ui/public/interfaces/cursor.mojom.h" 13 #include "services/ui/public/interfaces/cursor.mojom.h"
14 #include "ui/aura/aura_export.h" 14 #include "ui/aura/aura_export.h"
15 #include "ui/aura/mus/mus_types.h" 15 #include "ui/aura/mus/mus_types.h"
16 #include "ui/compositor/layer_type.h"
16 17
17 namespace cc { 18 namespace cc {
18 class SurfaceInfo; 19 class SurfaceInfo;
19 } 20 }
20 21
21 namespace gfx { 22 namespace gfx {
22 class Rect; 23 class Rect;
23 } 24 }
24 25
25 namespace ui { 26 namespace ui {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void RemoveChildFromServer(WindowMus* child) = 0; 76 virtual void RemoveChildFromServer(WindowMus* child) = 0;
76 virtual void ReorderFromServer(WindowMus* child, 77 virtual void ReorderFromServer(WindowMus* child,
77 WindowMus* relative, 78 WindowMus* relative,
78 ui::mojom::OrderDirection) = 0; 79 ui::mojom::OrderDirection) = 0;
79 virtual void SetBoundsFromServer(const gfx::Rect& bounds) = 0; 80 virtual void SetBoundsFromServer(const gfx::Rect& bounds) = 0;
80 virtual void SetVisibleFromServer(bool visible) = 0; 81 virtual void SetVisibleFromServer(bool visible) = 0;
81 virtual void SetOpacityFromServer(float opacity) = 0; 82 virtual void SetOpacityFromServer(float opacity) = 0;
82 virtual void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) = 0; 83 virtual void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) = 0;
83 virtual void SetPropertyFromServer(const std::string& property_name, 84 virtual void SetPropertyFromServer(const std::string& property_name,
84 const std::vector<uint8_t>* data) = 0; 85 const std::vector<uint8_t>* data) = 0;
86 virtual void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) = 0;
87 virtual void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) = 0;
85 virtual void SetFrameSinkIdFromServer( 88 virtual void SetFrameSinkIdFromServer(
86 const cc::FrameSinkId& frame_sink_id) = 0; 89 const cc::FrameSinkId& frame_sink_id) = 0;
87 virtual void SetSurfaceInfoFromServer( 90 virtual const cc::LocalSurfaceId& GetLocalSurfaceId() = 0;
88 const cc::SurfaceInfo& surface_info) = 0; 91 virtual const cc::LocalSurfaceId& AllocateLocalSurfaceIdForSize(
92 const gfx::Size& new_size) = 0;
89 // The window was deleted on the server side. DestroyFromServer() should 93 // The window was deleted on the server side. DestroyFromServer() should
90 // result in deleting |this|. 94 // result in deleting |this|.
91 virtual void DestroyFromServer() = 0; 95 virtual void DestroyFromServer() = 0;
92 virtual void AddTransientChildFromServer(WindowMus* child) = 0; 96 virtual void AddTransientChildFromServer(WindowMus* child) = 0;
93 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0; 97 virtual void RemoveTransientChildFromServer(WindowMus* child) = 0;
94 // Called when a window was added/removed as a transient child. 98 // Called when a window was added/removed as a transient child.
95 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0; 99 virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0;
96 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0; 100 virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0;
97 101
98 // Called in the rare case when WindowTreeClient needs to change state and 102 // Called in the rare case when WindowTreeClient needs to change state and
(...skipping 24 matching lines...) Expand all
123 127
124 void set_server_id(Id id) { server_id_ = id; } 128 void set_server_id(Id id) { server_id_ = id; }
125 129
126 Id server_id_ = kInvalidServerId; 130 Id server_id_ = kInvalidServerId;
127 const WindowMusType window_mus_type_; 131 const WindowMusType window_mus_type_;
128 }; 132 };
129 133
130 } // namespace aura 134 } // namespace aura
131 135
132 #endif // UI_AURA_MUS_WINDOW_MUS_H_ 136 #endif // UI_AURA_MUS_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/in_flight_change.cc ('k') | ui/aura/mus/window_port_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698