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

Unified Diff: services/ui/ws/display.cc

Issue 2804403002: Adds ability for WindowManager to create display roots (Closed)
Patch Set: cleanup Created 3 years, 8 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
« no previous file with comments | « services/ui/ws/display.h ('k') | services/ui/ws/display_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index 3513568e318a7d80f5525fa94f486e3f5d86a136..de4e8479d227e908826baf4de39e7c643de5a9c6 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -182,6 +182,18 @@ void Display::OnWillDestroyTree(WindowTree* tree) {
}
}
+void Display::RemoveWindowManagerDisplayRoot(
+ WindowManagerDisplayRoot* display_root) {
+ for (auto it = window_manager_display_root_map_.begin();
+ it != window_manager_display_root_map_.end(); ++it) {
+ if (it->second == display_root) {
+ window_manager_display_root_map_.erase(it);
+ return;
+ }
+ }
+ NOTREACHED();
+}
+
void Display::UpdateNativeCursor(mojom::CursorType cursor_id) {
if (cursor_id != last_cursor_) {
platform_display_->SetCursorById(cursor_id);
« no previous file with comments | « services/ui/ws/display.h ('k') | services/ui/ws/display_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698