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

Unified Diff: services/ui/ws/platform_display.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/ws/display_manager.cc ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 74f92c142666fb9fa83c4dfc2e298d4911da31c7..6a082d23af54525b8fe78086e153d92950b71802 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -255,13 +255,10 @@ void DefaultPlatformDisplay::DispatchEvent(ui::Event* event) {
}
void DefaultPlatformDisplay::OnCloseRequest() {
- platform_window_->Close();
+ display::PlatformScreen::GetInstance()->RequestCloseDisplay(GetId());
}
-void DefaultPlatformDisplay::OnClosed() {
- if (delegate_)
- delegate_->OnDisplayClosed();
-}
+void DefaultPlatformDisplay::OnClosed() {}
void DefaultPlatformDisplay::OnWindowStateChanged(
ui::PlatformWindowState new_state) {}
« no previous file with comments | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698