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

Unified Diff: sky/services/viewport/input_event.mojom

Issue 932283002: Port touch-demo.sky to Dart and make it work in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: sky/services/viewport/input_event.mojom
diff --git a/sky/services/viewport/input_event.mojom b/sky/services/viewport/input_event.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..21cf84c760246a70c871f3623d25a3dac85ac456
--- /dev/null
+++ b/sky/services/viewport/input_event.mojom
@@ -0,0 +1,43 @@
+// Copyright 2015 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.
+
+module sky;
+
+enum EventType {
+ UNKNOWN,
+ POINTER_DOWN,
+ POINTER_UP,
+ POINTER_MOVE,
+ POINTER_CANCEL,
+};
+
+enum PointerKind {
+ TOUCH,
+};
+
+struct PointerData {
+ int32 pointer;
+ PointerKind kind;
+ float x;
+ float y;
+ int32 buttons;
+ float pressure;
+ float pressure_min;
+ float pressure_max;
+ float distance;
+ float distance_min;
+ float distance_max;
+ float radius_major;
+ float radius_minor;
+ float radius_min;
+ float radius_max;
+ float orientation;
+ float tilt;
+};
+
+struct InputEvent {
+ EventType type;
+ int64 time_stamp;
+ PointerData? pointer_data;
+};

Powered by Google App Engine
This is Rietveld 408576698