Changeset 136899 in webkit
- Timestamp:
- Dec 6, 2012, 3:20:12 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r136894 r136899 1 2012-12-06 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] when forwarding events through the WebPluginContainer, create a UserGestureIndicator if processing a user gesture 4 https://bugs.webkit.org/show_bug.cgi?id=104306 5 6 Reviewed by Dimitri Glazkov. 7 8 * platform/chromium/plugins/user-gesture-expected.txt: Added. 9 * platform/chromium/plugins/user-gesture.html: Added. 10 1 11 2012-12-06 David Grogan <dgrogan@chromium.org> 2 12 -
trunk/Source/WebKit/chromium/ChangeLog
r136897 r136899 1 2012-12-06 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] when forwarding events through the WebPluginContainer, create a UserGestureIndicator if processing a user gesture 4 https://bugs.webkit.org/show_bug.cgi?id=104306 5 6 Reviewed by Dimitri Glazkov. 7 8 In http://trac.webkit.org/changeset/65964 a UserGestureIndicator was 9 introduced in chromium's WebKit layer intended to fix a problem with 10 plugins, however, it also affected regular event handling, so I removed 11 it in http://trac.webkit.org/changeset/128273. Turns out it still is a 12 problem for plugins. This change adds the UserGestureIndicator back, 13 however, only for the WebPluginContainer. 14 15 * public/WebInputEvent.h: 16 (WebInputEvent): 17 (WebKit::WebInputEvent::isUserGestureEventType): 18 * src/WebPluginContainerImpl.cpp: 19 (WebKit::WebPluginContainerImpl::handleEvent): 20 1 21 2012-12-06 David Grogan <dgrogan@chromium.org> 2 22 -
trunk/Source/WebKit/chromium/public/WebInputEvent.h
r136383 r136899 204 204 } 205 205 206 // Returns true if the WebInputEvent |type| should be handled as user gesture. 207 static bool isUserGestureEventType(int type) 208 { 209 return isKeyboardEventType(type) 210 || type == MouseDown 211 || type == MouseUp 212 || type == TouchStart 213 || type == TouchEnd; 214 } 215 206 216 // Returns true if the WebInputEvent is a gesture event. 207 217 static bool isGestureEventType(int type) -
trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.cpp
r136186 r136899 186 186 return; 187 187 188 const WebInputEvent* currentInputEvent = WebViewImpl::currentInputEvent(); 189 UserGestureIndicator gestureIndicator(currentInputEvent && WebInputEvent::isUserGestureEventType(currentInputEvent->type) ? DefinitelyProcessingUserGesture : PossiblyProcessingUserGesture); 190 188 191 RefPtr<WebPluginContainerImpl> protector(this); 189 192 // The events we pass are defined at: -
trunk/Tools/ChangeLog
r136896 r136899 1 2012-12-06 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] when forwarding events through the WebPluginContainer, create a UserGestureIndicator if processing a user gesture 4 https://bugs.webkit.org/show_bug.cgi?id=104306 5 6 Reviewed by Dimitri Glazkov. 7 8 * DumpRenderTree/chromium/TestWebPlugin.cpp: 9 (TestWebPlugin::TestWebPlugin): 10 (TestWebPlugin::handleInputEvent): add support for printing the user gesture status 11 * DumpRenderTree/chromium/TestWebPlugin.h: 12 (TestWebPlugin): 13 1 14 2012-12-06 Dirk Pranke <dpranke@chromium.org> 2 15 -
trunk/Tools/DumpRenderTree/chromium/TestWebPlugin.cpp
r136013 r136899 138 138 , m_touchEventRequest(WebKit::WebPluginContainer::TouchEventRequestTypeNone) 139 139 , m_printEventDetails(false) 140 , m_printUserGestureStatus(false) 140 141 , m_canProcessDrag(false) 141 142 { … … 147 148 static const WebString kAttributePrintEventDetails = WebString::fromUTF8("print-event-details"); 148 149 static const WebString kAttributeCanProcessDrag = WebString::fromUTF8("can-process-drag"); 150 static const WebString kAttributePrintUserGestureStatus = WebString::fromUTF8("print-user-gesture-status"); 149 151 150 152 ASSERT(params.attributeNames.size() == params.attributeValues.size()); … … 168 170 else if (attributeName == kAttributeCanProcessDrag) 169 171 m_canProcessDrag = parseBoolean(attributeValue); 172 else if (attributeName == kAttributePrintUserGestureStatus) 173 m_printUserGestureStatus = parseBoolean(attributeValue); 170 174 } 171 175 } … … 487 491 if (m_printEventDetails) 488 492 printEventDetails(event); 493 if (m_printUserGestureStatus) 494 printf("* %shandling user gesture\n", m_frame->isProcessingUserGesture() ? "" : "not "); 489 495 return false; 490 496 } -
trunk/Tools/DumpRenderTree/chromium/TestWebPlugin.h
r136013 r136899 135 135 WebKit::WebPluginContainer::TouchEventRequestType m_touchEventRequest; 136 136 bool m_printEventDetails; 137 bool m_printUserGestureStatus; 137 138 bool m_canProcessDrag; 138 139 };
Note:
See TracChangeset
for help on using the changeset viewer.