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

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

Issue 2745143004: Inform window manager about modal windows in mus+ash. (Closed)
Patch Set: . 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
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 SetModalType(const ClientWindowId& window_id, ModalType modal_type); 176 bool SetModalType(ServerWindow* window, 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 waiting_for_top_level_window_info_; 582 waiting_for_top_level_window_info_;
583 bool embedder_intercepts_events_ = false; 583 bool embedder_intercepts_events_ = false;
584 584
585 DISALLOW_COPY_AND_ASSIGN(WindowTree); 585 DISALLOW_COPY_AND_ASSIGN(WindowTree);
586 }; 586 };
587 587
588 } // namespace ws 588 } // namespace ws
589 } // namespace ui 589 } // namespace ui
590 590
591 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 591 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698