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

Side by Side Diff: components/mus/ws/window_tree.h

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetAsModal -> SetModal + Other review comments addressed Created 4 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 | « components/mus/ws/window_manager_state.cc ('k') | components/mus/ws/window_tree.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 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_WS_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // These functions are synchronous variants of those defined in the mojom. The 122 // These functions are synchronous variants of those defined in the mojom. The
123 // WindowTree implementations all call into these. See the mojom for details. 123 // WindowTree implementations all call into these. See the mojom for details.
124 bool SetCapture(const ClientWindowId& client_window_id); 124 bool SetCapture(const ClientWindowId& client_window_id);
125 bool NewWindow(const ClientWindowId& client_window_id, 125 bool NewWindow(const ClientWindowId& client_window_id,
126 const std::map<std::string, std::vector<uint8_t>>& properties); 126 const std::map<std::string, std::vector<uint8_t>>& properties);
127 bool AddWindow(const ClientWindowId& parent_id, 127 bool AddWindow(const ClientWindowId& parent_id,
128 const ClientWindowId& child_id); 128 const ClientWindowId& child_id);
129 bool AddTransientWindow(const ClientWindowId& window_id, 129 bool AddTransientWindow(const ClientWindowId& window_id,
130 const ClientWindowId& transient_window_id); 130 const ClientWindowId& transient_window_id);
131 bool SetModal(const ClientWindowId& window_id);
131 std::vector<const ServerWindow*> GetWindowTree( 132 std::vector<const ServerWindow*> GetWindowTree(
132 const ClientWindowId& window_id) const; 133 const ClientWindowId& window_id) const;
133 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); 134 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible);
134 bool Embed(const ClientWindowId& window_id, 135 bool Embed(const ClientWindowId& window_id,
135 mojom::WindowTreeClientPtr client, 136 mojom::WindowTreeClientPtr client,
136 uint32_t policy_bitmask, 137 uint32_t policy_bitmask,
137 ConnectionSpecificId* connection_id); 138 ConnectionSpecificId* connection_id);
138 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); 139 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event);
139 140
140 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); 141 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 mojo::Map<mojo::String, mojo::Array<uint8_t>> 306 mojo::Map<mojo::String, mojo::Array<uint8_t>>
306 transport_properties) override; 307 transport_properties) override;
307 void DeleteWindow(uint32_t change_id, Id transport_window_id) override; 308 void DeleteWindow(uint32_t change_id, Id transport_window_id) override;
308 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override; 309 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override;
309 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override; 310 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override;
310 void AddTransientWindow(uint32_t change_id, 311 void AddTransientWindow(uint32_t change_id,
311 Id window, 312 Id window,
312 Id transient_window) override; 313 Id transient_window) override;
313 void RemoveTransientWindowFromParent(uint32_t change_id, 314 void RemoveTransientWindowFromParent(uint32_t change_id,
314 Id transient_window_id) override; 315 Id transient_window_id) override;
316 void SetModal(uint32_t change_id, Id window_id) override;
315 void ReorderWindow(uint32_t change_Id, 317 void ReorderWindow(uint32_t change_Id,
316 Id window_id, 318 Id window_id,
317 Id relative_window_id, 319 Id relative_window_id,
318 mojom::OrderDirection direction) override; 320 mojom::OrderDirection direction) override;
319 void GetWindowTree( 321 void GetWindowTree(
320 Id window_id, 322 Id window_id,
321 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback) 323 const mojo::Callback<void(mojo::Array<mojom::WindowDataPtr>)>& callback)
322 override; 324 override;
323 void SetCapture(uint32_t change_id, Id window_id) override; 325 void SetCapture(uint32_t change_id, Id window_id) override;
324 void ReleaseCapture(uint32_t change_id, Id window_id) override; 326 void ReleaseCapture(uint32_t change_id, Id window_id) override;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 427
426 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 428 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
427 429
428 DISALLOW_COPY_AND_ASSIGN(WindowTree); 430 DISALLOW_COPY_AND_ASSIGN(WindowTree);
429 }; 431 };
430 432
431 } // namespace ws 433 } // namespace ws
432 } // namespace mus 434 } // namespace mus
433 435
434 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 436 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_state.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698