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

Unified Diff: services/ui/ws/window_tree.h

Issue 2696873002: Change OnWindowInputEvent to use display_id to find the host and update event root_location in WS. (Closed)
Patch Set: nits 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/ws/window_tree.h
diff --git a/services/ui/ws/window_tree.h b/services/ui/ws/window_tree.h
index 7bb3106f2b93db999857d127d59c3ce754f77ec5..49299fccce064bcdf378e8c1121e6f6a0979df5c 100644
--- a/services/ui/ws/window_tree.h
+++ b/services/ui/ws/window_tree.h
@@ -118,6 +118,9 @@ class WindowTree : public mojom::WindowTree,
// Returns true if |window| is one of this trees roots.
bool HasRoot(const ServerWindow* window) const;
+ // Find the correct root for |window| in this tree's roots.
+ const ServerWindow* FindRootFor(const ServerWindow* window) const;
+
std::set<const ServerWindow*> roots() { return roots_; }
void set_name(const std::string& name) { name_ = name; }

Powered by Google App Engine
This is Rietveld 408576698