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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 304793003: use enum to specify deviceSource for fling animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased for parallel breaking changes 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 34c08f67465c7aeac601033d0a4edcae7d247af6..67cf02fbb7bcaac2202668930a942bf07a437695 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1233,7 +1233,7 @@ bool WebContentsImpl::HandleGestureEvent(
// Some platforms (eg. Mac) send GesturePinch events for trackpad pinch-zoom.
// Use them to implement browser zoom, as for HandleWheelEvent above.
if (event.type == blink::WebInputEvent::GesturePinchUpdate &&
- event.sourceDevice == blink::WebGestureEvent::Touchpad) {
+ event.sourceDevice == blink::WebGestureDeviceTouchpad) {
// The scale difference necessary to trigger a zoom action. Derived from
// experimentation to find a value that feels reasonable.
const float kZoomStepValue = 0.6f;
« no previous file with comments | « content/browser/renderer_host/web_input_event_aura.cc ('k') | content/browser/web_contents/web_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698