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

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: Test fix 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 f0680f24b53cc4958571a2e264f6ab2f8191f156..ea22a7a166ad262ff029658a8631cf844915079c 100644
--- a/content/browser/renderer_host/input/web_input_event_util.h
+++ b/content/browser/renderer_host/input/web_input_event_util.h
@@ -6,10 +6,11 @@
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_
#include "content/common/content_export.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "ui/events/keycodes/keyboard_codes.h"
-namespace blink {
-class WebKeyboardEvent;
+namespace ui{
+struct GestureEventData;
}
namespace content {
@@ -20,6 +21,13 @@ CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier(
blink::WebKeyboardEvent* event,
ui::KeyboardCode windows_key_code);
-}
+// Converts a ui::GestureEventData payload to a WebGestureEvent, using the
+// |scale| multiplier on all relevant gesture components. Note that on Android,
+// this will be the inverse of the DPI scale (scaling from pixels to DIPs).
+CONTENT_EXPORT blink::WebGestureEvent CreateWebGestureEventFromGestureEventData(
tdresser 2014/03/03 19:44:32 Should this go in content/browser/renderer_host/ui
jdduke (slow) 2014/03/03 22:33:17 I believe that has an events target dependency, an
+ 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