Index: ui/ozone/public/ozone_platform_screen_delegate.h |
diff --git a/ui/ozone/public/ozone_platform_screen_delegate.h b/ui/ozone/public/ozone_platform_screen_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5bb69f97a5931bcab01a8970cc76f8e4109c7e47 |
--- /dev/null |
+++ b/ui/ozone/public/ozone_platform_screen_delegate.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 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_PUBLIC_OZONE_PLATFORM_SCREEN_DELEGATE_H_ |
+#define UI_OZONE_PUBLIC_OZONE_PLATFORM_SCREEN_DELEGATE_H_ |
+ |
+namespace ui { |
+ |
+// A simple observer interface for all clients interested in receiving various |
+// output change notifications like size changes, when a new output is added, |
+// etc. |
+class OzonePlatformScreenDelegate { |
+ public: |
+ // Called when the current output geometry has changed. |
+ virtual void OnOutputGeometryChanged(int32_t name, const gfx::Rect& rect) = 0; |
+ |
+ protected: |
+ virtual ~OzonePlatformScreenDelegate() {} |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_SCREEN_DELEGATE_H_ |