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

Unified Diff: ui/wayland/wayland_widget.h

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/wayland/wayland_task.cc ('k') | ui/wayland/wayland_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wayland/wayland_widget.h
diff --git a/ui/wayland/wayland_widget.h b/ui/wayland/wayland_widget.h
new file mode 100644
index 0000000000000000000000000000000000000000..0691d4b2c6939f90977fb3775eff81e256c423c6
--- /dev/null
+++ b/ui/wayland/wayland_widget.h
@@ -0,0 +1,32 @@
+// Copyright 2013 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_WAYLAND_WAYLAND_WIDGET_H_
+#define UI_WAYLAND_WAYLAND_WIDGET_H_
+
+namespace base {
+namespace wayland {
+union WaylandEvent;
+}
+}
+
+namespace ui {
+
+// WaylandWidget is an interface for processing Wayland events.
+class WaylandWidget {
+ public:
+ virtual ~WaylandWidget() {}
+
+ virtual void OnMotionNotify(base::wayland::WaylandEvent event) = 0;
+ virtual void OnButtonNotify(base::wayland::WaylandEvent event) = 0;
+ virtual void OnKeyNotify(base::wayland::WaylandEvent event) = 0;
+ virtual void OnPointerFocus(base::wayland::WaylandEvent event) = 0;
+ virtual void OnKeyboardFocus(base::wayland::WaylandEvent event) = 0;
+
+ virtual void OnGeometryChange(base::wayland::WaylandEvent event) = 0;
+};
+
+} // namespace ui
+
+#endif // UI_WAYLAND_WAYLAND_WIDGET_H_
« no previous file with comments | « ui/wayland/wayland_task.cc ('k') | ui/wayland/wayland_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698