Changeset 90686 in webkit


Ignore:
Timestamp:
Jul 9, 2011 12:47:10 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Patch by Noel Gordon <noel.gordon@gmail.com> on 2011-07-09
Reviewed by Adam Roben.

[WebKit2] Forward focus events to windowless plugins on the windows port.
https://bugs.webkit.org/show_bug.cgi?id=63251

No new tests. Covered by existing tests: plugins/mouse-events.html and
plugins/keyboard-events.html.

  • WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:

(WebKit::NetscapePlugin::platformSetFocus):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r90647 r90686  
     12011-07-09  Noel Gordon  <noel.gordon@gmail.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        [WebKit2] Forward focus events to windowless plugins on the windows port.
     6        https://bugs.webkit.org/show_bug.cgi?id=63251
     7
     8        No new tests. Covered by existing tests: plugins/mouse-events.html and
     9        plugins/keyboard-events.html.
     10
     11        * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
     12        (WebKit::NetscapePlugin::platformSetFocus):
     13
    1142011-07-08  Andreas Kling  <kling@webkit.org>
    215
  • trunk/Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp

    r90332 r90686  
    309309}
    310310
    311 void NetscapePlugin::platformSetFocus(bool)
    312 {
    313     CurrentPluginSetter setCurrentPlugin(this);
    314 
    315     notImplemented();
     311void NetscapePlugin::platformSetFocus(bool hasFocus)
     312{
     313    CurrentPluginSetter setCurrentPlugin(this);
     314
     315    if (m_isWindowed)
     316        return;
     317
     318    controller()->willSendEventToPlugin();
     319
     320    NPEvent npEvent;
     321    npEvent.event = hasFocus ? WM_SETFOCUS : WM_KILLFOCUS;
     322    npEvent.wParam = 0;
     323    npEvent.lParam = 0;
     324
     325    NPP_HandleEvent(&npEvent);
    316326}
    317327
Note: See TracChangeset for help on using the changeset viewer.