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

Unified Diff: Source/web/WebInputEventFactoryMac.mm

Issue 307733002: use enum to specify deviceSource for fling animation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | public/platform/Platform.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebInputEventFactoryMac.mm
diff --git a/Source/web/WebInputEventFactoryMac.mm b/Source/web/WebInputEventFactoryMac.mm
index d1a9272ed163d1f8b93acafd651b7d370823068a..c9f4f5bf5b54d2934c3f3dfae3260b9f2d514fef 100644
--- a/Source/web/WebInputEventFactoryMac.mm
+++ b/Source/web/WebInputEventFactoryMac.mm
@@ -1137,7 +1137,7 @@ WebGestureEvent WebInputEventFactory::gestureEvent(NSEvent *event, NSView *view)
result.timeStampSeconds = [event timestamp];
// MacOS X gestures are used only for pinch support.
- result.sourceDevice = WebGestureEvent::Touchpad;
+ result.sourceDevice = WebGestureDeviceTouchpad;
switch ([event type]) {
case NSEventTypeMagnify:
result.type = WebInputEvent::GesturePinchUpdate;
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | public/platform/Platform.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698