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

Side by Side Diff: services/ui/ws/display_manager.cc

Issue 2345043003: Unify mustash display closing code paths. (Closed)
Patch Set: Rebase. Created 4 years, 3 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 | « services/ui/ws/display.cc ('k') | services/ui/ws/platform_display.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "services/ui/ws/display_manager.h" 5 #include "services/ui/ws/display_manager.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "services/ui/display/platform_screen.h" 8 #include "services/ui/display/platform_screen.h"
9 #include "services/ui/ws/display.h" 9 #include "services/ui/ws/display.h"
10 #include "services/ui/ws/display_binding.h" 10 #include "services/ui/ws/display_binding.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ws::Display* display = new ws::Display(window_server_, params); 175 ws::Display* display = new ws::Display(window_server_, params);
176 display->Init(nullptr); 176 display->Init(nullptr);
177 177
178 window_server_->delegate()->UpdateTouchTransforms(); 178 window_server_->delegate()->UpdateTouchTransforms();
179 } 179 }
180 180
181 void DisplayManager::OnDisplayRemoved(int64_t id) { 181 void DisplayManager::OnDisplayRemoved(int64_t id) {
182 Display* display = GetDisplayById(id); 182 Display* display = GetDisplayById(id);
183 if (display) 183 if (display)
184 DestroyDisplay(display); 184 DestroyDisplay(display);
185 // TODO(kylechar): What if the display is still pending?
186 } 185 }
187 186
188 void DisplayManager::OnDisplayModified(int64_t id, const gfx::Rect& bounds) { 187 void DisplayManager::OnDisplayModified(int64_t id, const gfx::Rect& bounds) {
189 // TODO(kylechar): Implement. 188 // TODO(kylechar): Implement.
190 NOTREACHED(); 189 NOTREACHED();
191 } 190 }
192 191
193 } // namespace ws 192 } // namespace ws
194 } // namespace ui 193 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698