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

Unified Diff: ui/ozone/platform/dri/display_change_observer.h

Issue 844343002: [Ozone-DRI] Add display observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update GYP Created 5 years, 11 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: ui/ozone/platform/dri/display_change_observer.h
diff --git a/ui/ozone/platform/dri/display_change_observer.h b/ui/ozone/platform/dri/display_change_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..a174cf639fedb873257e8068eab6a1ed0ade2c5c
--- /dev/null
+++ b/ui/ozone/platform/dri/display_change_observer.h
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_
+#define UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_
+
+namespace ui {
+
+class HardwareDisplayController;
+
+class DisplayChangeObserver {
+ public:
+ virtual ~DisplayChangeObserver() {}
+
+ // Called when |controller| was changed/added.
+ virtual void OnDisplayChanged(HardwareDisplayController* controller) = 0;
+
+ // Called just before |controller| is removed. Observers that cached
+ // |controller| must invalidate it at this point.
+ virtual void OnDisplayRemoved(HardwareDisplayController* controller) = 0;
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRI_DISPLAY_CHANGE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698