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

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/WebTestPlugin.cpp

Issue 12088115: Merge 141357 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebKit/chromium/src/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/DumpRenderTree/chromium/TestRunner/src/WebTestPlugin.cpp
===================================================================
--- Tools/DumpRenderTree/chromium/TestRunner/src/WebTestPlugin.cpp (revision 141606)
+++ Tools/DumpRenderTree/chromium/TestRunner/src/WebTestPlugin.cpp (working copy)
@@ -235,6 +235,8 @@
OwnPtr<WebExternalTextureLayer> m_layer;
WebPluginContainer::TouchEventRequestType m_touchEventRequest;
+ // Requests touch events from the WebPluginContainerImpl multiple times to tickle webkit.org/b/108381
+ bool m_reRequestTouchEvents;
bool m_printEventDetails;
bool m_printUserGestureStatus;
bool m_canProcessDrag;
@@ -246,6 +248,7 @@
, m_container(0)
, m_context(0)
, m_touchEventRequest(WebPluginContainer::TouchEventRequestTypeNone)
+ , m_reRequestTouchEvents(false)
, m_printEventDetails(false)
, m_printUserGestureStatus(false)
, m_canProcessDrag(false)
@@ -255,6 +258,7 @@
static const WebString kAttributePrimitiveColor = WebString::fromUTF8("primitive-color");
static const WebString kAttributeOpacity = WebString::fromUTF8("opacity");
static const WebString kAttributeAcceptsTouch = WebString::fromUTF8("accepts-touch");
+ static const WebString kAttributeReRequestTouchEvents = WebString::fromUTF8("re-request-touch");
static const WebString kAttributePrintEventDetails = WebString::fromUTF8("print-event-details");
static const WebString kAttributeCanProcessDrag = WebString::fromUTF8("can-process-drag");
static const WebString kAttributePrintUserGestureStatus = WebString::fromUTF8("print-user-gesture-status");
@@ -275,6 +279,8 @@
m_scene.opacity = parseOpacity(attributeValue);
else if (attributeName == kAttributeAcceptsTouch)
m_touchEventRequest = parseTouchEventRequestType(attributeValue);
+ else if (attributeName == kAttributeReRequestTouchEvents)
+ m_reRequestTouchEvents = parseBoolean(attributeValue);
else if (attributeName == kAttributePrintEventDetails)
m_printEventDetails = parseBoolean(attributeValue);
else if (attributeName == kAttributeCanProcessDrag)
@@ -304,6 +310,10 @@
m_layer = adoptPtr(Platform::current()->compositorSupport()->createExternalTextureLayer(this));
m_container = container;
m_container->setWebLayer(m_layer->layer());
+ if (m_reRequestTouchEvents) {
+ m_container->requestTouchEventType(WebPluginContainer::TouchEventRequestTypeSynthesizedMouse);
+ m_container->requestTouchEventType(WebPluginContainer::TouchEventRequestTypeRaw);
+ }
m_container->requestTouchEventType(m_touchEventRequest);
m_container->setWantsWheelEvents(true);
return true;
« no previous file with comments | « Source/WebKit/chromium/src/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698