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

Unified Diff: ui/base/touch/touch_device.h

Issue 696713002: Pointer/hover media query support: platform-dependent changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Java styles. Created 6 years 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/android/ui_android.gyp ('k') | ui/base/touch/touch_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_device.h
diff --git a/ui/base/touch/touch_device.h b/ui/base/touch/touch_device.h
index 191569f0e6d20b74554b72e655d45808dd1037a7..589bbd20f069bb0db2509c18ca8fede911ef165a 100644
--- a/ui/base/touch/touch_device.h
+++ b/ui/base/touch/touch_device.h
@@ -11,6 +11,8 @@
#include <jni.h>
#endif
+// FIXME: This covers more than just touches. Rename to input_device? Should do
+// the same for most of the files in this folder.
sadrul 2014/12/03 21:45:02 Can you please file a bug and reference it from he
mustaq 2014/12/04 14:57:52 Done.
namespace ui {
@@ -29,6 +31,8 @@ UI_BASE_EXPORT int MaxTouchPoints();
// Bit field values indicating available pointer types. Identical to
// blink::WebSettings::PointerType enums, enforced by compile-time assertions
// in content/public/common/web_preferences.cc .
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base
+// GENERATED_JAVA_PREFIX_TO_STRIP: POINTER_TYPE_
enum PointerType {
POINTER_TYPE_NONE = 1 << 0,
POINTER_TYPE_FIRST = POINTER_TYPE_NONE,
@@ -40,6 +44,8 @@ enum PointerType {
// Bit field values indicating available hover types. Identical to
// blink::WebSettings::HoverType enums, enforced by compile-time assertions
// in content/public/common/web_preferences.cc .
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base
+// GENERATED_JAVA_PREFIX_TO_STRIP: HOVER_TYPE_
enum HoverType {
HOVER_TYPE_NONE = 1 << 0,
HOVER_TYPE_FIRST = HOVER_TYPE_NONE,
@@ -48,6 +54,11 @@ enum HoverType {
HOVER_TYPE_LAST = HOVER_TYPE_HOVER
};
+UI_BASE_EXPORT int AvailablePointerTypes();
+UI_BASE_EXPORT PointerType PrimaryPointerType();
+UI_BASE_EXPORT int AvailableHoverTypes();
+UI_BASE_EXPORT HoverType PrimaryHoverType();
sadrul 2014/12/03 21:45:02 Can all these have Get prefix? Document that thes
mustaq 2014/12/04 14:57:51 Done with the Get prefix. I will skip adding comm
+
#if defined(OS_ANDROID)
bool RegisterTouchDeviceAndroid(JNIEnv* env);
#endif
« no previous file with comments | « ui/android/ui_android.gyp ('k') | ui/base/touch/touch_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698