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

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

Issue 1760183002: Fixed missing pointerTypes for touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed line-lengths, added a bug ref. Created 4 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 ui { 12 namespace ui {
13 class MotionEventAndroid; 13 class MotionEventAndroid;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 class WebMouseEventBuilder { 18 class WebMouseEventBuilder {
19 public: 19 public:
20 static blink::WebMouseEvent Build(blink::WebInputEvent::Type type, 20 static blink::WebMouseEvent Build(
21 blink::WebMouseEvent::Button button, 21 blink::WebInputEvent::Type type,
22 double time_sec, 22 blink::WebMouseEvent::Button button,
23 int window_x, 23 double time_sec,
24 int window_y, 24 int window_x,
25 int modifiers, 25 int window_y,
26 int click_count); 26 int modifiers,
27 int click_count,
28 blink::WebPointerProperties::PointerType pointer_type);
27 }; 29 };
28 30
29 class WebMouseWheelEventBuilder { 31 class WebMouseWheelEventBuilder {
30 public: 32 public:
31 static blink::WebMouseWheelEvent Build(float ticks_x, 33 static blink::WebMouseWheelEvent Build(float ticks_x,
32 float ticks_y, 34 float ticks_y,
33 float tick_multiplier, 35 float tick_multiplier,
34 double time_sec, 36 double time_sec,
35 int window_x, 37 int window_x,
36 int window_y); 38 int window_y);
(...skipping 14 matching lines...) Expand all
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 } // namespace content 60 } // namespace content
59 61
60 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_ H_ 62 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_ANDROID_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698