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

Unified Diff: services/ui/display/platform_screen_stub.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/display/platform_screen_stub.h ('k') | services/ui/ws/display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_stub.cc
diff --git a/services/ui/display/platform_screen_stub.cc b/services/ui/display/platform_screen_stub.cc
index 4b133dfbfbd2ba087a9a3ca9d3c9dc2fd5764dd1..6a23e25b8547de2c6a109d5de46f68552c12d7db 100644
--- a/services/ui/display/platform_screen_stub.cc
+++ b/services/ui/display/platform_screen_stub.cc
@@ -43,6 +43,14 @@ void PlatformScreenStub::Init(PlatformScreenDelegate* delegate) {
weak_ptr_factory_.GetWeakPtr()));
}
+void PlatformScreenStub::RequestCloseDisplay(int64_t display_id) {
+ if (display_id == kDisplayId) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&PlatformScreenDelegate::OnDisplayRemoved,
+ base::Unretained(delegate_), display_id));
+ }
+}
+
int64_t PlatformScreenStub::GetPrimaryDisplayId() const {
return kDisplayId;
}
« no previous file with comments | « services/ui/display/platform_screen_stub.h ('k') | services/ui/ws/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698