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

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

Issue 1609193002: [UseZoomForDSF] Alwatys use DIP coordinates in pepper plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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 "base/memory/scoped_ptr.h"
9
8 namespace base { 10 namespace base {
9 class TimeDelta; 11 class TimeDelta;
10 } 12 }
11 13
12 namespace blink { 14 namespace blink {
13 class WebGestureEvent; 15 class WebGestureEvent;
16 class WebInputEvent;
14 class WebTouchEvent; 17 class WebTouchEvent;
15 } 18 }
16 19
17 namespace gfx { 20 namespace gfx {
18 class PointF; 21 class PointF;
19 } 22 }
20 23
21 namespace ui { 24 namespace ui {
22 struct GestureEventData; 25 struct GestureEventData;
23 struct GestureEventDetails; 26 struct GestureEventDetails;
24 class MotionEvent; 27 class MotionEvent;
25 28
26 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent( 29 blink::WebTouchEvent CreateWebTouchEventFromMotionEvent(
27 const MotionEvent& event, 30 const MotionEvent& event,
28 bool may_cause_scrolling); 31 bool may_cause_scrolling);
29 32
30 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details, 33 blink::WebGestureEvent CreateWebGestureEvent(const GestureEventDetails& details,
31 base::TimeDelta timestamp, 34 base::TimeDelta timestamp,
32 const gfx::PointF& location, 35 const gfx::PointF& location,
33 const gfx::PointF& raw_location, 36 const gfx::PointF& raw_location,
34 int flags); 37 int flags);
35 38
36 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|. 39 // Convenience wrapper for |CreateWebGestureEvent| using the supplied |data|.
37 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData( 40 blink::WebGestureEvent CreateWebGestureEventFromGestureEventData(
38 const GestureEventData& data); 41 const GestureEventData& data);
39 42
40 int EventFlagsToWebEventModifiers(int flags); 43 int EventFlagsToWebEventModifiers(int flags);
41 44
42 } // namespace content 45 scoped_ptr<blink::WebInputEvent> ScaleWebInputEvent(
46 const blink::WebInputEvent& event,
47 float scale);
48
49 } // namespace ui
43 50
44 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_ 51 #endif // UI_EVENTS_BLINK_BLINK_EVENT_UTIL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698