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

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

Issue 859973003: Touch emulator: enables double tap support for pages similar to Chrome on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: frame_metadata_util Created 5 years, 11 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 f7d53dda30bc416a2a9348b59c18f697f2437656..87c985d3e653f2bbd4a6d7042211fbce519a0494 100644
--- a/content/browser/renderer_host/input/touch_emulator.h
+++ b/content/browser/renderer_host/input/touch_emulator.h
@@ -24,6 +24,9 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
void Enable(ui::GestureProviderConfigType config_type);
void Disable();
+ // See GestureProvider::SetDoubleTapSupportForPageEnabled.
+ void SetDoubleTapSupportForPageEnabled(bool enabled);
+
// Note that TouchEmulator should always listen to touch events and their acks
// (even in disabled state) to track native stream presence.
bool enabled() const { return gesture_provider_; }
@@ -78,6 +81,7 @@ class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient {
// emulation. It does not intercept any events.
scoped_ptr<ui::FilteredGestureProvider> gesture_provider_;
ui::GestureProviderConfigType gesture_provider_config_type_;
+ bool double_tap_enabled_;
// While emulation is on, default cursor is touch. Pressing shift changes
// cursor to the pinch one.
« no previous file with comments | « content/browser/renderer_host/frame_metadata_util.cc ('k') | content/browser/renderer_host/input/touch_emulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698