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

Side by Side Diff: services/ui/display/screen_manager_stub_internal.cc

Issue 2692863009: Remove usage of ws::Display in ws::UserDisplayManager. (Closed)
Patch Set: Fix mash_browser_tests. Created 3 years, 10 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/display/screen_manager_stub_internal.h ('k') | services/ui/ws/display_manager.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/display/screen_manager_stub_internal.h" 5 #include "services/ui/display/screen_manager_stub_internal.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 void ScreenManagerStubInternal::RequestCloseDisplay(int64_t display_id) { 68 void ScreenManagerStubInternal::RequestCloseDisplay(int64_t display_id) {
69 if (display_id == display_id_) { 69 if (display_id == display_id_) {
70 base::ThreadTaskRunnerHandle::Get()->PostTask( 70 base::ThreadTaskRunnerHandle::Get()->PostTask(
71 FROM_HERE, base::Bind(&ScreenManagerDelegate::OnDisplayRemoved, 71 FROM_HERE, base::Bind(&ScreenManagerDelegate::OnDisplayRemoved,
72 base::Unretained(delegate_), display_id)); 72 base::Unretained(delegate_), display_id));
73 } 73 }
74 } 74 }
75 75
76 int64_t ScreenManagerStubInternal::GetPrimaryDisplayId() const {
77 return display_id_;
78 }
79
80 } // namespace display 76 } // namespace display
OLDNEW
« no previous file with comments | « services/ui/display/screen_manager_stub_internal.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698