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

Side by Side Diff: ui/events/blink/blink_event_util.h

Issue 2054193002: Android mouse events shouldn't appear as TouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added meta_state plumbing. Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 5 #ifndef UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 6 #define UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "third_party/WebKit/public/platform/WebInputEvent.h" 10 #include "third_party/WebKit/public/platform/WebInputEvent.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. 44 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|.
45 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( 45 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData(
46 const GestureEventData& data); 46 const GestureEventData& data);
47 47
48 int EventFlagsToWebEventModifiers(int flags); 48 int EventFlagsToWebEventModifiers(int flags);
49 49
50 std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent( 50 std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent(
51 const blink::WebInputEvent& event, 51 const blink::WebInputEvent& event,
52 float scale); 52 float scale);
53 53
54 blink::WebPointerProperties::PointerType ToWebPointerType( 54 blink::WebInputEvent::Type ToWebMouseEventType(MotionEvent::Action action);
55 MotionEvent::ToolType tool_type); 55
56 void SetWebPointerPropertiesFromMotionEventData(
57 blink::WebPointerProperties& webPointerProperties,
58 int pointer_id,
59 float pressure,
60 float orientation_rad,
61 float tilt_rad,
62 int android_buttons_changed,
63 int tool_type);
56 64
57 int WebEventModifiersToEventFlags(int modifiers); 65 int WebEventModifiersToEventFlags(int modifiers);
58 66
59 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( 67 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
60 ui::DomCode code); 68 ui::DomCode code);
61 69
62 } // namespace ui 70 } // namespace ui
63 71
64 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 72 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698