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

Unified Diff: ui/ozone/platform/wayland/desktop_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: Created 4 years, 7 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/wayland/desktop_platform_screen_delegate.h
diff --git a/ui/ozone/platform/wayland/desktop_platform_screen_delegate.h b/ui/ozone/platform/wayland/desktop_platform_screen_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..074cbdada2ad4192dd9749a04844a245c4ab8125
--- /dev/null
+++ b/ui/ozone/platform/wayland/desktop_platform_screen_delegate.h
@@ -0,0 +1,26 @@
+// 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_PLATFORM_WAYLAND_DESKTOP_PLATFORM_SCREEN_DELEGATE_H_
+#define UI_OZONE_PLATFORM_WAYLAND_DESKTOP_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 DesktopPlatformScreenDelegate {
+ public:
+ // Called when the current output size has changed.
+ virtual void OnOutputSizeChanged(int32_t name,
+ unsigned width,
+ unsigned height) = 0;
+
+ protected:
+ virtual ~DesktopPlatformScreenDelegate() {}
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_WAYLAND_DESKTOP_PLATFORM_SCREEN_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698