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

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

Issue 2036873002: Making EventSender talk to the right WebWidget (for OOPIF support). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from oshima@. 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 std::unique_ptr<blink::WebInputEvent> TranslateAndScaleWebInputEvent(
55 const blink::WebInputEvent& event,
56 int delta_x,
57 int delta_y,
tdresser 2016/10/06 14:10:37 Should we pass a Point here instead?
Łukasz Anforowicz 2016/10/06 18:03:19 I've ended up using gfx::Vector2d for this.
58 float scale);
59
54 blink::WebPointerProperties::PointerType ToWebPointerType( 60 blink::WebPointerProperties::PointerType ToWebPointerType(
55 MotionEvent::ToolType tool_type); 61 MotionEvent::ToolType tool_type);
56 62
57 int WebEventModifiersToEventFlags(int modifiers); 63 int WebEventModifiersToEventFlags(int modifiers);
58 64
59 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( 65 blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
60 ui::DomCode code); 66 ui::DomCode code);
61 67
62 } // namespace ui 68 } // namespace ui
63 69
64 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 70 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/site-per-process ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698