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

Unified Diff: ui/ozone/public/ozone_platform_screen_delegate.h

Issue 2027943002: [WIP] Make content_shell run under Wayland Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (09.28.2016)Rebase on master 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 | « ui/ozone/public/ozone_platform.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/ozone/public/ozone_platform.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698