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

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: Check if can_accept_events setting has changed; change names 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 SetCanAcceptEvents(Id transport_window_id,
171 bool can_accept_events) override;
170 bool Embed(const ClientWindowId& window_id, 172 bool Embed(const ClientWindowId& window_id,
171 mojom::WindowTreeClientPtr client, 173 mojom::WindowTreeClientPtr client,
172 uint32_t flags); 174 uint32_t flags);
173 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); 175 void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
174 176
175 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); 177 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
176 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, 178 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id,
177 uint32_t client_change_id, 179 uint32_t client_change_id,
178 const ServerWindow* window); 180 const ServerWindow* window);
179 void AddActivationParent(const ClientWindowId& window_id); 181 void AddActivationParent(const ClientWindowId& window_id);
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 waiting_for_top_level_window_info_; 495 waiting_for_top_level_window_info_;
494 bool embedder_intercepts_events_ = false; 496 bool embedder_intercepts_events_ = false;
495 497
496 DISALLOW_COPY_AND_ASSIGN(WindowTree); 498 DISALLOW_COPY_AND_ASSIGN(WindowTree);
497 }; 499 };
498 500
499 } // namespace ws 501 } // namespace ws
500 } // namespace ui 502 } // namespace ui
501 503
502 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ 504 #endif // SERVICES_UI_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698