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

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

Issue 2089183003: mus: Introduce API for embedder to dispatch event to the embeded client. Base URL: https://chromium.googlesource.com/chromium/src.git@mus-parent-window-receives-child-event
Patch Set: Created 4 years, 6 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/public/interfaces/window_tree.mojom ('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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool AddTransientWindow(const ClientWindowId& window_id, 158 bool AddTransientWindow(const ClientWindowId& window_id,
159 const ClientWindowId& transient_window_id); 159 const ClientWindowId& transient_window_id);
160 bool SetModal(const ClientWindowId& window_id); 160 bool SetModal(const ClientWindowId& window_id);
161 std::vector<const ServerWindow*> GetWindowTree( 161 std::vector<const ServerWindow*> GetWindowTree(
162 const ClientWindowId& window_id) const; 162 const ClientWindowId& window_id) const;
163 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); 163 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible);
164 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity); 164 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity);
165 bool SetFocus(const ClientWindowId& window_id); 165 bool SetFocus(const ClientWindowId& window_id);
166 bool Embed(const ClientWindowId& window_id, 166 bool Embed(const ClientWindowId& window_id,
167 mojom::WindowTreeClientPtr client, 167 mojom::WindowTreeClientPtr client,
168 mojom::InputEventHandlerRequest input_handler_request,
168 uint32_t flags); 169 uint32_t flags);
169 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); 170 void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
170 171
171 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); 172 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
172 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, 173 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id,
173 uint32_t client_change_id, 174 uint32_t client_change_id,
174 const ServerWindow* window); 175 const ServerWindow* window);
175 void AddActivationParent(const ClientWindowId& window_id); 176 void AddActivationParent(const ClientWindowId& window_id);
176 177
177 // Calls through to the client. 178 // Calls through to the client.
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 waiting_for_top_level_window_info_; 488 waiting_for_top_level_window_info_;
488 bool embedder_intercepts_events_ = false; 489 bool embedder_intercepts_events_ = false;
489 490
490 DISALLOW_COPY_AND_ASSIGN(WindowTree); 491 DISALLOW_COPY_AND_ASSIGN(WindowTree);
491 }; 492 };
492 493
493 } // namespace ws 494 } // namespace ws
494 } // namespace mus 495 } // namespace mus
495 496
496 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 497 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698