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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_target_android.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h " 5 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h "
6 6
7 #include "content/browser/android/content_view_core_impl.h" 7 #include "content/browser/android/content_view_core_impl.h"
8 #include "content/browser/renderer_host/render_widget_host_impl.h" 8 #include "content/browser/renderer_host/render_widget_host_impl.h"
9 #include "jni/MotionEventSynthesizer_jni.h" 9 #include "jni/MotionEventSynthesizer_jni.h"
10 #include "third_party/WebKit/public/web/WebInputEvent.h" 10 #include "third_party/WebKit/public/platform/WebInputEvent.h"
11 #include "ui/gfx/android/view_configuration.h" 11 #include "ui/gfx/android/view_configuration.h"
12 12
13 using blink::WebTouchEvent; 13 using blink::WebTouchEvent;
14 14
15 namespace content { 15 namespace content {
16 16
17 SyntheticGestureTargetAndroid::SyntheticGestureTargetAndroid( 17 SyntheticGestureTargetAndroid::SyntheticGestureTargetAndroid(
18 RenderWidgetHostImpl* host, 18 RenderWidgetHostImpl* host,
19 base::android::ScopedJavaLocalRef<jobject> touch_event_synthesizer) 19 base::android::ScopedJavaLocalRef<jobject> touch_event_synthesizer)
20 : SyntheticGestureTargetBase(host), 20 : SyntheticGestureTargetBase(host),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return gfx::ViewConfiguration::GetTouchSlopInDips(); 108 return gfx::ViewConfiguration::GetTouchSlopInDips();
109 } 109 }
110 110
111 float SyntheticGestureTargetAndroid::GetMinScalingSpanInDips() const { 111 float SyntheticGestureTargetAndroid::GetMinScalingSpanInDips() const {
112 // TODO(jdduke): Have all targets use the same ui::GestureConfiguration 112 // TODO(jdduke): Have all targets use the same ui::GestureConfiguration
113 // codepath. 113 // codepath.
114 return gfx::ViewConfiguration::GetMinScalingSpanInDips(); 114 return gfx::ViewConfiguration::GetMinScalingSpanInDips();
115 } 115 }
116 116
117 } // namespace content 117 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698