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

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

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Rebase Created 3 years, 12 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/touch_emulator.h
diff --git a/content/browser/renderer_host/input/touch_emulator.h b/content/browser/renderer_host/input/touch_emulator.h
index 5c02fbb5efd6560e12ab4346f72e9df1d135e308..03a61bd245dd6213bc8abd73b830b3e2460f8c70 100644
--- a/content/browser/renderer_host/input/touch_emulator.h
+++ b/content/browser/renderer_host/input/touch_emulator.h
@@ -73,7 +73,9 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
bool InPinchGestureMode() const;
void FillTouchEventAndPoint(const blink::WebMouseEvent& mouse_event);
- void FillPinchEvent(const blink::WebInputEvent& event);
+ blink::WebGestureEvent GetPinchGestureEvent(
+ blink::WebInputEvent::Type type,
+ const blink::WebInputEvent& original_event);
// The following methods generate and pass gesture events to the renderer.
void PinchBegin(const blink::WebGestureEvent& event);
@@ -118,7 +120,6 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
// did not send fling start in pinch mode.
bool suppress_next_fling_cancel_;
- blink::WebGestureEvent pinch_event_;
// Point which does not move while pinch-zooming.
gfx::Point pinch_anchor_;
// The cumulative scale change from the start of pinch gesture.

Powered by Google App Engine
This is Rietveld 408576698