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

Side by Side Diff: content/renderer/mus/renderer_window_tree_client.h

Issue 2778363002: Mus-WS / Aura-Mus: Propagate LocalSurfaceId on WindowTreeHost creation (Closed)
Patch Set: Add comments Created 3 years, 8 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 | « no previous file | content/renderer/mus/renderer_window_tree_client.cc » ('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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_
6 #define CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ 6 #define CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "services/ui/common/types.h" 10 #include "services/ui/common/types.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 RenderWidget* GetRenderWidgetFromRoutingId(int routing_id); 66 RenderWidget* GetRenderWidgetFromRoutingId(int routing_id);
67 67
68 void DestroySelf(); 68 void DestroySelf();
69 69
70 // ui::mojom::WindowTreeClient: 70 // ui::mojom::WindowTreeClient:
71 // Note: A number of the following are currently not-implemented. Some of 71 // Note: A number of the following are currently not-implemented. Some of
72 // these will remain unimplemented in the long-term. Some of the 72 // these will remain unimplemented in the long-term. Some of the
73 // implementations would require some amount of refactoring out of 73 // implementations would require some amount of refactoring out of
74 // RenderWidget and related classes (e.g. resize, input, ime etc.). 74 // RenderWidget and related classes (e.g. resize, input, ime etc.).
75 void OnEmbed(ui::ClientSpecificId client_id, 75 void OnEmbed(
76 ui::mojom::WindowDataPtr root, 76 ui::ClientSpecificId client_id,
77 ui::mojom::WindowTreePtr tree, 77 ui::mojom::WindowDataPtr root,
78 int64_t display_id, 78 ui::mojom::WindowTreePtr tree,
79 ui::Id focused_window_id, 79 int64_t display_id,
80 bool drawn, 80 ui::Id focused_window_id,
81 const cc::FrameSinkId& frame_sink_id) override; 81 bool drawn,
82 const cc::FrameSinkId& frame_sink_id,
83 const base::Optional<cc::LocalSurfaceId>& local_surface_id) override;
82 void OnEmbeddedAppDisconnected(ui::Id window_id) override; 84 void OnEmbeddedAppDisconnected(ui::Id window_id) override;
83 void OnUnembed(ui::Id window_id) override; 85 void OnUnembed(ui::Id window_id) override;
84 void OnCaptureChanged(ui::Id new_capture_window_id, 86 void OnCaptureChanged(ui::Id new_capture_window_id,
85 ui::Id old_capture_window_id) override; 87 ui::Id old_capture_window_id) override;
86 void OnFrameSinkIdAllocated(ui::Id window_id, 88 void OnFrameSinkIdAllocated(ui::Id window_id,
87 const cc::FrameSinkId& frame_sink_id) override; 89 const cc::FrameSinkId& frame_sink_id) override;
88 void OnTopLevelCreated(uint32_t change_id, 90 void OnTopLevelCreated(
89 ui::mojom::WindowDataPtr data, 91 uint32_t change_id,
90 int64_t display_id, 92 ui::mojom::WindowDataPtr data,
91 bool drawn, 93 int64_t display_id,
92 const cc::FrameSinkId& frame_sink_id) override; 94 bool drawn,
95 const cc::FrameSinkId& frame_sink_id,
96 const base::Optional<cc::LocalSurfaceId>& local_surface_id) override;
93 void OnWindowBoundsChanged( 97 void OnWindowBoundsChanged(
94 ui::Id window_id, 98 ui::Id window_id,
95 const gfx::Rect& old_bounds, 99 const gfx::Rect& old_bounds,
96 const gfx::Rect& new_bounds, 100 const gfx::Rect& new_bounds,
97 const base::Optional<cc::LocalSurfaceId>& local_frame_id) override; 101 const base::Optional<cc::LocalSurfaceId>& local_frame_id) override;
98 void OnClientAreaChanged( 102 void OnClientAreaChanged(
99 uint32_t window_id, 103 uint32_t window_id,
100 const gfx::Insets& new_client_area, 104 const gfx::Insets& new_client_area,
101 const std::vector<gfx::Rect>& new_additional_client_areas) override; 105 const std::vector<gfx::Rect>& new_additional_client_areas) override;
102 void OnTransientWindowAdded(uint32_t window_id, 106 void OnTransientWindowAdded(uint32_t window_id,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ui::mojom::WindowTreePtr tree_; 177 ui::mojom::WindowTreePtr tree_;
174 cc::LocalSurfaceId current_local_surface_id_; 178 cc::LocalSurfaceId current_local_surface_id_;
175 mojo::Binding<ui::mojom::WindowTreeClient> binding_; 179 mojo::Binding<ui::mojom::WindowTreeClient> binding_;
176 180
177 DISALLOW_COPY_AND_ASSIGN(RendererWindowTreeClient); 181 DISALLOW_COPY_AND_ASSIGN(RendererWindowTreeClient);
178 }; 182 };
179 183
180 } // namespace content 184 } // namespace content
181 185
182 #endif // CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_ 186 #endif // CONTENT_RENDERER_MUS_RENDERER_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/mus/renderer_window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698