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

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

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only set accept_events when it's false Created 4 years, 5 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 bool AddWindow(const ClientWindowId& parent_id, 160 bool AddWindow(const ClientWindowId& parent_id,
161 const ClientWindowId& child_id); 161 const ClientWindowId& child_id);
162 bool AddTransientWindow(const ClientWindowId& window_id, 162 bool AddTransientWindow(const ClientWindowId& window_id,
163 const ClientWindowId& transient_window_id); 163 const ClientWindowId& transient_window_id);
164 bool SetModal(const ClientWindowId& window_id); 164 bool SetModal(const ClientWindowId& window_id);
165 std::vector<const ServerWindow*> GetWindowTree( 165 std::vector<const ServerWindow*> GetWindowTree(
166 const ClientWindowId& window_id) const; 166 const ClientWindowId& window_id) const;
167 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); 167 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible);
168 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity); 168 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity);
169 bool SetFocus(const ClientWindowId& window_id); 169 bool SetFocus(const ClientWindowId& window_id);
170 void SetAcceptEvents(Id transport_window_id, bool accept_events) override;
170 bool Embed(const ClientWindowId& window_id, 171 bool Embed(const ClientWindowId& window_id,
171 mojom::WindowTreeClientPtr client, 172 mojom::WindowTreeClientPtr client,
172 uint32_t flags); 173 uint32_t flags);
173 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); 174 void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
174 175
175 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); 176 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
176 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, 177 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id,
177 uint32_t client_change_id, 178 uint32_t client_change_id,
178 const ServerWindow* window); 179 const ServerWindow* window);
179 void AddActivationParent(const ClientWindowId& window_id); 180 void AddActivationParent(const ClientWindowId& window_id);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 waiting_for_top_level_window_info_; 489 waiting_for_top_level_window_info_;
489 bool embedder_intercepts_events_ = false; 490 bool embedder_intercepts_events_ = false;
490 491
491 DISALLOW_COPY_AND_ASSIGN(WindowTree); 492 DISALLOW_COPY_AND_ASSIGN(WindowTree);
492 }; 493 };
493 494
494 } // namespace ws 495 } // namespace ws
495 } // namespace ui 496 } // namespace ui
496 497
497 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 498 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698