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

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

Issue 718153002: Indicate whether a touch event will cause scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/touch_emulator.h
diff --git a/content/browser/renderer_host/input/touch_emulator.h b/content/browser/renderer_host/input/touch_emulator.h
index c364eb9fdca7c775168dfc907d3bf3fc6f7e27e9..b4c66b26aebc76f1167bbe1418f4f03965eb0b7d 100644
--- a/content/browser/renderer_host/input/touch_emulator.h
+++ b/content/browser/renderer_host/input/touch_emulator.h
@@ -57,7 +57,7 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
// Whether we should convert scrolls into pinches.
bool InPinchGestureMode() const;
- bool FillTouchEventAndPoint(const blink::WebMouseEvent& mouse_event);
+ void FillTouchEventAndPoint(const blink::WebMouseEvent& mouse_event);
void FillPinchEvent(const blink::WebInputEvent& event);
// The following methods generate and pass gesture events to the renderer.
@@ -66,7 +66,9 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
void PinchEnd(const blink::WebGestureEvent& event);
void ScrollEnd(const blink::WebGestureEvent& event);
- void ForwardTouchEventToClient();
+ // Offers the emulated event to |gesture_provider_|, conditionally forwarding
+ // it to the client if appropriate.
+ void HandleEmulatedTouchEvent(blink::WebTouchEvent event);
TouchEmulatorClient* const client_;
ui::FilteredGestureProvider gesture_provider_;

Powered by Google App Engine
This is Rietveld 408576698