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

Unified Diff: ui/base/events.h

Issue 8907005: Add support for new scroll valuators coming from CMT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup and comments Created 9 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
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();

Powered by Google App Engine
This is Rietveld 408576698