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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_builders_android.h

Issue 181833003: [Android] Out with the Android GR, in with the new unified C++ GR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 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 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "third_party/WebKit/public/web/WebInputEvent.h" 10 #include "third_party/WebKit/public/web/WebInputEvent.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class MotionEventAndroid;
15
14 class WebMouseEventBuilder { 16 class WebMouseEventBuilder {
15 public: 17 public:
16 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, 18 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type,
17 blink::WebMouseEvent::Button button, 19 blink::WebMouseEvent::Button button,
18 double time_sec, 20 double time_sec,
19 int window_x, 21 int window_x,
20 int window_y, 22 int window_y,
21 int modifiers, 23 int modifiers,
22 int click_count); 24 int click_count);
23 }; 25 };
(...skipping 26 matching lines...) Expand all
50 class WebGestureEventBuilder { 52 class WebGestureEventBuilder {
51 public: 53 public:
52 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type, 54 static blink::WebGestureEvent Build(blink::WebInputEvent::Type type,
53 double time_sec, 55 double time_sec,
54 int x, 56 int x,
55 int y); 57 int y);
56 }; 58 };
57 59
58 class WebTouchEventBuilder { 60 class WebTouchEventBuilder {
59 public: 61 public:
60 static blink::WebTouchEvent Build(jobject motion_event, float dpi_scale); 62 static blink::WebTouchEvent Build(const MotionEventAndroid& event,
63 float device_scale_factor);
61 }; 64 };
62 65
63 } // namespace content 66 } // namespace content
64 67
65 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_ H_ 68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698