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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1605773004: mus: Implement Window Server Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void Reorder(Window* window, 66 void Reorder(Window* window,
67 Id relative_window_id, 67 Id relative_window_id,
68 mojom::OrderDirection direction); 68 mojom::OrderDirection direction);
69 69
70 // Returns true if the specified window was created by this connection. 70 // Returns true if the specified window was created by this connection.
71 bool OwnsWindow(Window* window) const; 71 bool OwnsWindow(Window* window) const;
72 72
73 void SetBounds(Window* window, 73 void SetBounds(Window* window,
74 const gfx::Rect& old_bounds, 74 const gfx::Rect& old_bounds,
75 const gfx::Rect& bounds); 75 const gfx::Rect& bounds);
76 void SetCapture(Window* window);
77 void ReleaseCapture(Window* window);
76 void SetClientArea(Id window_id, 78 void SetClientArea(Id window_id,
77 const gfx::Insets& client_area, 79 const gfx::Insets& client_area,
78 const std::vector<gfx::Rect>& additional_client_areas); 80 const std::vector<gfx::Rect>& additional_client_areas);
79 void SetFocus(Window* window); 81 void SetFocus(Window* window);
80 void SetCanFocus(Id window_id, bool can_focus); 82 void SetCanFocus(Id window_id, bool can_focus);
81 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); 83 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id);
82 void SetVisible(Window* window, bool visible); 84 void SetVisible(Window* window, bool visible);
83 void SetProperty(Window* window, 85 void SetProperty(Window* window,
84 const std::string& name, 86 const std::string& name,
85 mojo::Array<uint8_t> data); 87 mojo::Array<uint8_t> data);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void RemoveObserver(WindowTreeConnectionObserver* observer) override; 166 void RemoveObserver(WindowTreeConnectionObserver* observer) override;
165 167
166 // Overridden from WindowTreeClient: 168 // Overridden from WindowTreeClient:
167 void OnEmbed(ConnectionSpecificId connection_id, 169 void OnEmbed(ConnectionSpecificId connection_id,
168 mojom::WindowDataPtr root, 170 mojom::WindowDataPtr root,
169 mojom::WindowTreePtr tree, 171 mojom::WindowTreePtr tree,
170 Id focused_window_id, 172 Id focused_window_id,
171 uint32_t access_policy) override; 173 uint32_t access_policy) override;
172 void OnEmbeddedAppDisconnected(Id window_id) override; 174 void OnEmbeddedAppDisconnected(Id window_id) override;
173 void OnUnembed(Id window_id) override; 175 void OnUnembed(Id window_id) override;
176 void OnLostCapture(Id window_id) override;
174 void OnTopLevelCreated(uint32_t change_id, 177 void OnTopLevelCreated(uint32_t change_id,
175 mojom::WindowDataPtr data) override; 178 mojom::WindowDataPtr data) override;
176 void OnWindowBoundsChanged(Id window_id, 179 void OnWindowBoundsChanged(Id window_id,
177 mojo::RectPtr old_bounds, 180 mojo::RectPtr old_bounds,
178 mojo::RectPtr new_bounds) override; 181 mojo::RectPtr new_bounds) override;
179 void OnClientAreaChanged( 182 void OnClientAreaChanged(
180 uint32_t window_id, 183 uint32_t window_id,
181 mojo::InsetsPtr new_client_area, 184 mojo::InsetsPtr new_client_area,
182 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; 185 mojo::Array<mojo::RectPtr> new_additional_client_areas) override;
183 void OnTransientWindowAdded(uint32_t window_id, 186 void OnTransientWindowAdded(uint32_t window_id,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>> 270 scoped_ptr<mojo::AssociatedBinding<mojom::WindowManager>>
268 window_manager_internal_; 271 window_manager_internal_;
269 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; 272 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_;
270 273
271 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 274 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
272 }; 275 };
273 276
274 } // namespace mus 277 } // namespace mus
275 278
276 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 279 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698