Changeset 55606 in webkit


Ignore:
Timestamp:
Mar 5, 2010 6:34:47 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-05 John Abd-El-Malek <jam@chromium.org>

Reviewed by Darin Fisher.

Take out code hack that flips the result of NPP_HandleEvent. This needs to move to
the NPAPI code so that Pepper plugins don't hit it.
https://bugs.webkit.org/show_bug.cgi?id=35779

  • public/WebPluginContainer.h:
  • src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::handleMouseEvent): (WebKit::WebPluginContainerImpl::handleKeyboardEvent):
Location:
trunk/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r55575 r55606  
     12010-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
    1142010-03-05  Ilya Tikhonovsky  <loislo@chromium.org>
    215
  • trunk/WebKit/chromium/public/WebPluginContainer.h

    r50716 r55606  
    3333
    3434struct NPObject;
     35
     36// Temporary ifdef since this is two-sided.
     37#define WEBPLUGINCONTAINER_DOESNT_MODIFY_HANDLED 1
    3538
    3639namespace WebKit {
  • trunk/WebKit/chromium/src/WebPluginContainerImpl.cpp

    r55381 r55606  
    361361    WebCursorInfo cursorInfo;
    362362    bool handled = m_webPlugin->handleInputEvent(webEvent, cursorInfo);
    363 #if !OS(DARWIN)
    364     // TODO(pkasting): http://b/1119691 This conditional seems exactly
    365     // backwards, but if I reverse it, giving focus to a transparent
    366     // (windowless) plugin fails.
    367     handled = !handled;
    368     // TODO(awalker): oddly, the above is not true in Mac builds.  Looking
    369     // at Apple's corresponding code for Mac and Windows (PluginViewMac and
    370     // PluginViewWin), setDefaultHandled() gets called when handleInputEvent()
    371     // returns true, which then indicates to WebCore that the plugin wants to
    372     // swallow the event--which is what we want.  Calling setDefaultHandled()
    373     // fixes several Mac Chromium bugs, but does indeed prevent windowless plugins
    374     // from getting focus in Windows builds, as pkasting notes above.  So for
    375     // now, we only do so in Mac builds.
    376 #endif
    377363    if (handled)
    378364        event->setDefaultHandled();
     
    397383    WebCursorInfo cursor_info;
    398384    bool handled = m_webPlugin->handleInputEvent(webEvent, cursor_info);
    399 #if !OS(DARWIN)
    400     // TODO(pkasting): http://b/1119691 See above.
    401     handled = !handled;
    402 #endif
    403385    if (handled)
    404386        event->setDefaultHandled();
Note: See TracChangeset for help on using the changeset viewer.