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

Side by Side Diff: content/browser/renderer_host/ui_events_helper.h

Issue 712133003: Track whether a scroll sequence has been partially prevented (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_EVENTS_HELPER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "content/browser/renderer_host/event_with_latency_info.h" 9 #include "content/browser/renderer_host/event_with_latency_info.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 30 matching lines...) Expand all
41 const TouchEventWithLatencyInfo& touch, 41 const TouchEventWithLatencyInfo& touch,
42 ScopedVector<ui::TouchEvent>* list, 42 ScopedVector<ui::TouchEvent>* list,
43 TouchEventCoordinateSystem coordinate_system); 43 TouchEventCoordinateSystem coordinate_system);
44 44
45 // Creates a WebGestureEvent from a ui::GestureEvent. Note that it does not 45 // Creates a WebGestureEvent from a ui::GestureEvent. Note that it does not
46 // populate the event coordinates (i.e. |x|, |y|, |globalX|, and |globalY|). So 46 // populate the event coordinates (i.e. |x|, |y|, |globalX|, and |globalY|). So
47 // the caller must populate these fields. 47 // the caller must populate these fields.
48 blink::WebGestureEvent MakeWebGestureEventFromUIEvent( 48 blink::WebGestureEvent MakeWebGestureEventFromUIEvent(
49 const ui::GestureEvent& event); 49 const ui::GestureEvent& event);
50 50
51 int EventFlagsToWebEventModifiers(int flags);
52
53 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated 51 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated
54 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was 52 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was
55 // updated. 53 // updated.
56 blink::WebTouchPoint* UpdateWebTouchEventFromUIEvent( 54 blink::WebTouchPoint* UpdateWebTouchEventFromUIEvent(
57 const ui::TouchEvent& event, 55 const ui::TouchEvent& event,
58 blink::WebTouchEvent* web_event); 56 blink::WebTouchEvent* web_event);
59 } 57 }
60 58
61 #endif // CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_ 59 #endif // CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698