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_ |