Index: content/browser/renderer_host/input/motion_event_web.cc |
diff --git a/content/browser/renderer_host/input/motion_event_web.cc b/content/browser/renderer_host/input/motion_event_web.cc |
index 7ffdf5b432906716d69972ba7848ec6798f88e25..bff45355ce09326a5d5c922e960673667626f451 100644 |
--- a/content/browser/renderer_host/input/motion_event_web.cc |
+++ b/content/browser/renderer_host/input/motion_event_web.cc |
@@ -10,6 +10,7 @@ |
#include <cmath> |
#include "base/logging.h" |
+#include "content/browser/renderer_host/input/web_input_event_util.h" |
#include "content/common/input/web_touch_event_traits.h" |
using blink::WebInputEvent; |
@@ -158,6 +159,10 @@ int MotionEventWeb::GetButtonState() const { |
return 0; |
} |
+int MotionEventWeb::GetFlags() const { |
+ return WebEventModifiersToEventFlags(event_.modifiers); |
+} |
+ |
scoped_ptr<ui::MotionEvent> MotionEventWeb::Clone() const { |
return scoped_ptr<MotionEvent>(new MotionEventWeb(event_)); |
} |