Changeset 55606 in webkit
- Timestamp:
- Mar 5, 2010 6:34:47 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r55575 r55606 1 2010-03-05 John Abd-El-Malek <jam@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Take out code hack that flips the result of NPP_HandleEvent. This needs to move to 6 the NPAPI code so that Pepper plugins don't hit it. 7 https://bugs.webkit.org/show_bug.cgi?id=35779 8 9 * public/WebPluginContainer.h: 10 * src/WebPluginContainerImpl.cpp: 11 (WebKit::WebPluginContainerImpl::handleMouseEvent): 12 (WebKit::WebPluginContainerImpl::handleKeyboardEvent): 13 1 14 2010-03-05 Ilya Tikhonovsky <loislo@chromium.org> 2 15 -
trunk/WebKit/chromium/public/WebPluginContainer.h
r50716 r55606 33 33 34 34 struct NPObject; 35 36 // Temporary ifdef since this is two-sided. 37 #define WEBPLUGINCONTAINER_DOESNT_MODIFY_HANDLED 1 35 38 36 39 namespace WebKit { -
trunk/WebKit/chromium/src/WebPluginContainerImpl.cpp
r55381 r55606 361 361 WebCursorInfo cursorInfo; 362 362 bool handled = m_webPlugin->handleInputEvent(webEvent, cursorInfo); 363 #if !OS(DARWIN)364 // TODO(pkasting): http://b/1119691 This conditional seems exactly365 // backwards, but if I reverse it, giving focus to a transparent366 // (windowless) plugin fails.367 handled = !handled;368 // TODO(awalker): oddly, the above is not true in Mac builds. Looking369 // at Apple's corresponding code for Mac and Windows (PluginViewMac and370 // PluginViewWin), setDefaultHandled() gets called when handleInputEvent()371 // returns true, which then indicates to WebCore that the plugin wants to372 // swallow the event--which is what we want. Calling setDefaultHandled()373 // fixes several Mac Chromium bugs, but does indeed prevent windowless plugins374 // from getting focus in Windows builds, as pkasting notes above. So for375 // now, we only do so in Mac builds.376 #endif377 363 if (handled) 378 364 event->setDefaultHandled(); … … 397 383 WebCursorInfo cursor_info; 398 384 bool handled = m_webPlugin->handleInputEvent(webEvent, cursor_info); 399 #if !OS(DARWIN)400 // TODO(pkasting): http://b/1119691 See above.401 handled = !handled;402 #endif403 385 if (handled) 404 386 event->setDefaultHandled();
Note: See TracChangeset
for help on using the changeset viewer.