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

Unified Diff: ui/wayland/wayland_widget.h

Issue 7457023: Adding a Wayland basic toolkit (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed the WaylandDisplay singleton Created 9 years, 5 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/wayland/wayland_widget.h
diff --git a/ui/wayland/wayland_widget.h b/ui/wayland/wayland_widget.h
new file mode 100644
index 0000000000000000000000000000000000000000..fe624169f7d994e7eb12534ffdf77b0d6255ac82
--- /dev/null
+++ b/ui/wayland/wayland_widget.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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_
+
+#include "ui/wayland/events/wayland_event.h"
+
+// WaylandWidget is an interface for processing Wayland events.
+class WaylandWidget {
+ public:
+ virtual ~WaylandWidget() {};
+
+ virtual void OnMotionNotify(WaylandEvent event) = 0;
Evan Martin 2011/07/22 21:08:54 Should these be passed the more specific event typ
+ virtual void OnButtonNotify(WaylandEvent event) = 0;
+ virtual void OnKeyNotify(WaylandEvent event) = 0;
+ virtual void OnPointerFocus(WaylandEvent event) = 0;
+ virtual void OnKeyboardFocus(WaylandEvent event) = 0;
+
+ virtual void OnGeometryChange(WaylandEvent event) = 0;
+};
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698