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

Unified Diff: ui/wayland/events/wayland_event.h

Issue 7457023: Adding a Wayland basic toolkit (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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
« no previous file with comments | « no previous file | ui/wayland/wayland.gyp » ('j') | ui/wayland/wayland_buffer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wayland/events/wayland_event.h
diff --git a/ui/wayland/events/wayland_event.h b/ui/wayland/events/wayland_event.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2577f777732b40c43617a896cb00c95184e852c
--- /dev/null
+++ b/ui/wayland/events/wayland_event.h
@@ -0,0 +1,91 @@
+// 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 WAYLAND_EVENT_H_
+#define WAYLAND_EVENT_H_
+
+#include <stdint.h>
+
+typedef enum {
+ WAYLAND_BUTTON,
+ WAYLAND_KEY,
+ WAYLAND_MOTION,
+ WAYLAND_POINTER_FOCUS,
+ WAYLAND_KEYBOARD_FOCUS,
+ WAYLAND_GEOMETRY_CHANGE,
+} WaylandEventType;
+
+enum WaylandEventButtonType {
+ LEFT_BUTTON = 272,
+ MIDDLE_BUTTON = 273,
+ RIGHT_BUTTON = 274,
+ SCROLL_UP = 275,
+ SCROLL_DOWN = 276,
Evan Martin 2011/07/21 16:37:57 Is this not in some wayland header somewhere?
+};
+
+struct WaylandEventButton {
+ WaylandEventType type;
+ uint32_t time;
+ uint32_t button;
+ uint32_t state;
+ uint32_t modifiers;
+ int32_t x;
+ int32_t y;
+};
+
+struct WaylandEventKey {
+ WaylandEventType type;
+ uint32_t time;
+ uint32_t key;
+ uint32_t sym;
+ uint32_t state;
+ uint32_t modifiers;
+};
+
+
+struct WaylandEventMotion {
+ WaylandEventType type;
+ uint32_t time;
+ uint32_t modifiers;
+ int32_t x;
+ int32_t y;
+};
+
+struct WaylandEventPointerFocus {
+ WaylandEventType type;
+ uint32_t time;
+ uint32_t state;
+ int32_t x;
+ int32_t y;
+};
+
+struct WaylandEventKeyboardFocus {
+ WaylandEventType type;
+ uint32_t time;
+ uint32_t state;
+ uint32_t modifiers;
+};
+
+struct WaylandEventGeometryChange {
+ WaylandEventType type;
+ uint32_t time;
+ int32_t x;
+ int32_t y;
+ int32_t width;
+ int32_t height;
+};
+
+union _WaylandEvent {
+ WaylandEventType type;
+ WaylandEventButton button;
+ WaylandEventKey key;
+ WaylandEventMotion motion;
+ WaylandEventPointerFocus pointer_focus;
+ WaylandEventKeyboardFocus keyboard_focus;
+ WaylandEventGeometryChange geometry_change;
+};
+
+typedef _WaylandEvent WaylandEvent;
+
+#endif
« no previous file with comments | « no previous file | ui/wayland/wayland.gyp » ('j') | ui/wayland/wayland_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698