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

Side by Side Diff: services/ui/ws/window_tree.h

Issue 2710023007: Make WindowTree::SetModal() take the type. (Closed)
Patch Set: address feedback. 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 | « services/ui/ws/window_manager_state.cc ('k') | services/ui/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 SERVICES_UI_WS_WINDOW_TREE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_
6 #define SERVICES_UI_WS_WINDOW_TREE_H_ 6 #define SERVICES_UI_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // WindowTree implementations all call into these. See the mojom for details. 166 // WindowTree implementations all call into these. See the mojom for details.
167 bool SetCapture(const ClientWindowId& client_window_id); 167 bool SetCapture(const ClientWindowId& client_window_id);
168 bool ReleaseCapture(const ClientWindowId& client_window_id); 168 bool ReleaseCapture(const ClientWindowId& client_window_id);
169 bool NewWindow(const ClientWindowId& client_window_id, 169 bool NewWindow(const ClientWindowId& client_window_id,
170 const std::map<std::string, std::vector<uint8_t>>& properties); 170 const std::map<std::string, std::vector<uint8_t>>& properties);
171 bool AddWindow(const ClientWindowId& parent_id, 171 bool AddWindow(const ClientWindowId& parent_id,
172 const ClientWindowId& child_id); 172 const ClientWindowId& child_id);
173 bool AddTransientWindow(const ClientWindowId& window_id, 173 bool AddTransientWindow(const ClientWindowId& window_id,
174 const ClientWindowId& transient_window_id); 174 const ClientWindowId& transient_window_id);
175 bool DeleteWindow(const ClientWindowId& window_id); 175 bool DeleteWindow(const ClientWindowId& window_id);
176 bool SetModal(const ClientWindowId& window_id); 176 bool SetModalType(const ClientWindowId& window_id, ModalType modal_type);
177 std::vector<const ServerWindow*> GetWindowTree( 177 std::vector<const ServerWindow*> GetWindowTree(
178 const ClientWindowId& window_id) const; 178 const ClientWindowId& window_id) const;
179 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); 179 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible);
180 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity); 180 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity);
181 bool SetFocus(const ClientWindowId& window_id); 181 bool SetFocus(const ClientWindowId& window_id);
182 bool Embed(const ClientWindowId& window_id, 182 bool Embed(const ClientWindowId& window_id,
183 mojom::WindowTreeClientPtr client, 183 mojom::WindowTreeClientPtr client,
184 uint32_t flags); 184 uint32_t flags);
185 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); 185 void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
186 186
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 const std::unordered_map<std::string, std::vector<uint8_t>>& 382 const std::unordered_map<std::string, std::vector<uint8_t>>&
383 transport_properties) override; 383 transport_properties) override;
384 void DeleteWindow(uint32_t change_id, Id transport_window_id) override; 384 void DeleteWindow(uint32_t change_id, Id transport_window_id) override;
385 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override; 385 void AddWindow(uint32_t change_id, Id parent_id, Id child_id) override;
386 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override; 386 void RemoveWindowFromParent(uint32_t change_id, Id window_id) override;
387 void AddTransientWindow(uint32_t change_id, 387 void AddTransientWindow(uint32_t change_id,
388 Id window, 388 Id window,
389 Id transient_window) override; 389 Id transient_window) override;
390 void RemoveTransientWindowFromParent(uint32_t change_id, 390 void RemoveTransientWindowFromParent(uint32_t change_id,
391 Id transient_window_id) override; 391 Id transient_window_id) override;
392 void SetModal(uint32_t change_id, Id window_id) override; 392 void SetModalType(uint32_t change_id, Id window_id, ModalType type) override;
393 void ReorderWindow(uint32_t change_Id, 393 void ReorderWindow(uint32_t change_Id,
394 Id window_id, 394 Id window_id,
395 Id relative_window_id, 395 Id relative_window_id,
396 mojom::OrderDirection direction) override; 396 mojom::OrderDirection direction) override;
397 void GetWindowTree( 397 void GetWindowTree(
398 Id window_id, 398 Id window_id,
399 const base::Callback<void(std::vector<mojom::WindowDataPtr>)>& callback) 399 const base::Callback<void(std::vector<mojom::WindowDataPtr>)>& callback)
400 override; 400 override;
401 void SetCapture(uint32_t change_id, Id window_id) override; 401 void SetCapture(uint32_t change_id, Id window_id) override;
402 void ReleaseCapture(uint32_t change_id, Id window_id) override; 402 void ReleaseCapture(uint32_t change_id, Id window_id) override;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 waiting_for_top_level_window_info_; 578 waiting_for_top_level_window_info_;
579 bool embedder_intercepts_events_ = false; 579 bool embedder_intercepts_events_ = false;
580 580
581 DISALLOW_COPY_AND_ASSIGN(WindowTree); 581 DISALLOW_COPY_AND_ASSIGN(WindowTree);
582 }; 582 };
583 583
584 } // namespace ws 584 } // namespace ws
585 } // namespace ui 585 } // namespace ui
586 586
587 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 587 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698