From e6c43c1244f8b35669900d810d0247c316b1af2c Mon Sep 17 00:00:00 2001 From: "dgozman@chromium.org" Date: Mon, 14 Apr 2014 16:47:12 +0000 Subject: [DevTools] Touch emulation in content. When renderer requests touch emulation using mouse, host creates a TouchEmulator object and passes mouse, mouse wheel and keyboard events to emulator before sending them to renderer. Emulator completely blocks mouse-related events, and instead generates touch events. Those touch events are handled over to gesture provider after being acked by renderer. Resulting gestures are sent to the renderer. When shift is pressed, scroll gestures are converted to pinch gestures, so user can scale the page. This is required because multitouch is not yet supported by emulator. BUG=337142 Review URL: https://codereview.chromium.org/138163016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263644 0039d316-1c4b-4281-b951-d872f2087c98 --- content/child/blink_platform_impl.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'content/child') diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc index 9b2898e..237d2c8 100644 --- a/content/child/blink_platform_impl.cc +++ b/content/child/blink_platform_impl.cc @@ -701,6 +701,7 @@ const DataResource kDataResources[] = { { "generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P }, { "generatePasswordHover", IDR_PASSWORD_GENERATION_ICON_HOVER, ui::SCALE_FACTOR_100P }, + // TODO(dgozman): remove this after moving to content-based touch emulation. { "syntheticTouchCursor", IDR_SYNTHETIC_TOUCH_CURSOR, ui::SCALE_FACTOR_100P }, }; -- cgit v1.1