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

Unified Diff: content/browser/renderer_host/input/web_input_event_util.h

Issue 182383007: Make the ContentGestureProvider a ui::FilteredGestureProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower similarity Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/web_input_event_util.h
diff --git a/content/browser/renderer_host/input/web_input_event_util.h b/content/browser/renderer_host/input/web_input_event_util.h
index 224d93b56cb67943b2a718aa97bbfd44291c4c27..f3d3c46724f2e03d10f510e009d6897884618ca6 100644
--- a/content/browser/renderer_host/input/web_input_event_util.h
+++ b/content/browser/renderer_host/input/web_input_event_util.h
@@ -10,6 +10,7 @@
#include "ui/events/keycodes/keyboard_codes.h"
namespace ui {
+struct GestureEventData;
class MotionEvent;
}
@@ -23,9 +24,16 @@ CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier(
// Creates a WebTouchEvent from |event|, scaling all size components from
// |event| by |scale|.
-CONTENT_EXPORT blink::WebTouchEvent
-CreateWebTouchEventFromMotionEvent(const ui::MotionEvent& event, float scale);
+CONTENT_EXPORT blink::WebTouchEvent CreateWebTouchEventFromMotionEvent(
+ const ui::MotionEvent& event,
+ float scale);
-}
+// Creates a WebGestureEvent from |event|, scaling all size components from
+// |event| by |scale|.
+CONTENT_EXPORT blink::WebGestureEvent CreateWebGestureEventFromGestureEventData(
+ const ui::GestureEventData& data,
+ float scale);
+
+} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698