summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/ui_events_helper.h
diff options
context:
space:
mode:
authorfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 03:55:07 +0000
committerfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 03:55:07 +0000
commitbca6c2c533f6c1d2eb4d565af3d66edc5c5bff31 (patch)
treedc8d6d79e81b120763f424f3140c8537854c3cbc /content/browser/renderer_host/ui_events_helper.h
parent4fdd06284b47b856130fdf684e720e2eccc784ec (diff)
downloadchromium_src-bca6c2c533f6c1d2eb4d565af3d66edc5c5bff31.zip
chromium_src-bca6c2c533f6c1d2eb4d565af3d66edc5c5bff31.tar.gz
chromium_src-bca6c2c533f6c1d2eb4d565af3d66edc5c5bff31.tar.bz2
Browser Plugin: Added gesture recognizer per guest RenderView.
Each BrowserPlugin gets its own gesture recognizer in RenderWidgetHostViewGuest. BUG=181313 Review URL: https://chromiumcodereview.appspot.com/12792012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/ui_events_helper.h')
-rw-r--r--content/browser/renderer_host/ui_events_helper.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/browser/renderer_host/ui_events_helper.h b/content/browser/renderer_host/ui_events_helper.h
index 0bd516c..619197a 100644
--- a/content/browser/renderer_host/ui_events_helper.h
+++ b/content/browser/renderer_host/ui_events_helper.h
@@ -21,6 +21,11 @@ class TouchEvent;
namespace content {
+enum TouchEventCoordinateSystem {
+ SCREEN_COORDINATES,
+ LOCAL_COORDINATES
+};
+
// Creates a list of ui::TouchEvents out of a single WebTouchEvent.
// A WebTouchEvent can contain information about a number of WebTouchPoints,
// whereas a ui::TouchEvent contains information about a single touch-point. So
@@ -28,7 +33,8 @@ namespace content {
// WebTouchEvent.
CONTENT_EXPORT bool MakeUITouchEventsFromWebTouchEvents(
const WebKit::WebTouchEvent& touch,
- ScopedVector<ui::TouchEvent>* list);
+ ScopedVector<ui::TouchEvent>* list,
+ TouchEventCoordinateSystem coordinate_system);
// Creates a WebGestureEvent from a ui::GestureEvent. Note that it does not
// populate the event coordinates (i.e. |x|, |y|, |globalX|, and |globalY|). So