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

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: Removed comment 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..aab93664b494c1a7d8a10e2d3ed05f691e366433 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
@@ -70,6 +71,9 @@ enum TouchStatus {
// unused touch event was handled.
};
+// Updates the list of devices for cached properties.
+UI_EXPORT void UpdateDeviceList();
Daniel Erat 2011/12/14 21:49:07 nit: need empty windows implementation
DaveMoore 2011/12/15 17:07:21 Done.
+
// Get the EventType from a native event.
UI_EXPORT EventType EventTypeFromNative(const base::NativeEvent& native_event);
@@ -111,6 +115,12 @@ 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);
+// Returns whether this is a scroll event and optionally gets the amount to be
+// scrolled. |x_offset| and |y_offset| can be NULL.
+UI_EXPORT bool GetScrollOffsets(const base::NativeEvent& native_event,
+ 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