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

Unified Diff: public/platform/WebPlatformEventType.h

Issue 417213002: Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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 | « public/platform/WebPlatformEventListener.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPlatformEventType.h
diff --git a/public/platform/WebPlatformEventType.h b/public/platform/WebPlatformEventType.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fd577c2301cc932ed649b465deead719101ceb0
--- /dev/null
+++ b/public/platform/WebPlatformEventType.h
@@ -0,0 +1,20 @@
+// Copyright 2014 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 WebPlatformEventType_h
+#define WebPlatformEventType_h
+
+namespace blink {
+
+enum WebPlatformEventType {
+ WebPlatformEventDeviceMotion,
+ WebPlatformEventDeviceOrientation,
+ WebPlatformEventDeviceLight,
+ WebPlatformEventBattery,
+ WebPlatformEventGamepad,
+};
+
+} // namespace blink
+
+#endif // WebPlatformEventType_h
« no previous file with comments | « public/platform/WebPlatformEventListener.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698