Index: ui/base/events.h |
diff --git a/ui/base/events.h b/ui/base/events.h |
index 69f83084f76831a6cf9ec589ea6efc7ef428f612..1822d092f95026dae363545a6a952a7cfea9174f 100644 |
--- a/ui/base/events.h |
+++ b/ui/base/events.h |
@@ -35,6 +35,7 @@ enum EventType { |
ET_TOUCH_CANCELLED, |
ET_DROP_TARGET_EVENT, |
ET_FOCUS_CHANGE, |
+ ET_SCROLL, |
}; |
// Event flags currently supported |
@@ -111,6 +112,10 @@ UI_EXPORT float GetTouchAngle(const base::NativeEvent& native_event); |
// Gets the force from a native_event. Normalized to be [0, 1]. Default is 0.0. |
UI_EXPORT float GetTouchForce(const base::NativeEvent& native_event); |
+UI_EXPORT bool GetScrollOffsets(const base::NativeEvent& native_event, |
Ben Goodger (Google)
2011/12/14 19:01:39
Offset from what?
DaveMoore
2011/12/14 21:26:04
Scrolls are always deltas. I can use a different w
|
+ float* x_offset, |
+ float* y_offset); |
+ |
// Creates and returns no-op event. |
UI_EXPORT base::NativeEvent CreateNoopEvent(); |