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

Unified Diff: content/browser/renderer_host/input/motion_event_android.h

Issue 567783002: Add modifier flags to MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove MotionEvent modifiers Created 6 years, 3 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: content/browser/renderer_host/input/motion_event_android.h
diff --git a/content/browser/renderer_host/input/motion_event_android.h b/content/browser/renderer_host/input/motion_event_android.h
index d71fa61983042e3ca25c4ba5c97b0f6cf62a2eba..1774356131e47455c92b01eb039f215aef3657aa 100644
--- a/content/browser/renderer_host/input/motion_event_android.h
+++ b/content/browser/renderer_host/input/motion_event_android.h
@@ -47,7 +47,8 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
jfloat raw_pos_y_pixels,
jint android_tool_type_0,
jint android_tool_type_1,
- jint android_button_state);
+ jint android_button_state,
+ jint meta_state);
virtual ~MotionEventAndroid();
// ui::MotionEvent methods.
@@ -76,6 +77,7 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
size_t historical_index) const OVERRIDE;
virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE;
virtual int GetButtonState() const OVERRIDE;
+ virtual int GetFlags() const OVERRIDE;
virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE;
virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE;
@@ -123,6 +125,7 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
gfx::Vector2dF cached_raw_position_offset_;
ToolType cached_tool_types_[MAX_POINTERS_TO_CACHE];
int cached_button_state_;
+ int cached_flags_;
// Used to convert pixel coordinates from the Java-backed MotionEvent to
// DIP coordinates cached/returned by the MotionEventAndroid.

Powered by Google App Engine
This is Rietveld 408576698