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

Unified Diff: services/ui/display/platform_screen_delegate.h

Issue 2461513002: Primary display change notifications. (Closed)
Patch Set: Cleanup. Created 4 years, 2 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
Index: services/ui/display/platform_screen_delegate.h
diff --git a/services/ui/display/platform_screen_delegate.h b/services/ui/display/platform_screen_delegate.h
index b326c6a14b7ec7c9f0d1d01c6e4a1c6152b27822..3a504aa196536f68ac231cc3fe6db43eaed8c47d 100644
--- a/services/ui/display/platform_screen_delegate.h
+++ b/services/ui/display/platform_screen_delegate.h
@@ -34,6 +34,11 @@ class PlatformScreenDelegate {
virtual void OnDisplayModified(int64_t id,
const ViewportMetrics& metrics) = 0;
+ // Called when the primary display is changed. If the last display is about
+ // to be removed then |primary_display_id| will be set to kInvalidDisplayID
sky 2016/10/28 17:08:47 Is it necessary that OnPrimaryDisplayChanged() is
kylechar 2016/10/28 19:40:36 Not necessary to do it one way or the other. Chang
+ // to indicate there is no primary display.
+ virtual void OnPrimaryDisplayChanged(int64_t primary_display_id) = 0;
+
protected:
virtual ~PlatformScreenDelegate() {}
};
« no previous file with comments | « no previous file | services/ui/display/platform_screen_ozone.h » ('j') | services/ui/display/platform_screen_ozone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698