Log Message
Patch by Noel Gordon <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (90685 => 90686)
--- trunk/Source/WebKit2/ChangeLog 2011-07-09 19:44:14 UTC (rev 90685)
+++ trunk/Source/WebKit2/ChangeLog 2011-07-09 19:47:10 UTC (rev 90686)
@@ -1,3 +1,16 @@
+2011-07-09 Noel Gordon <[email protected]>
+
+ 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):
+
2011-07-08 Andreas Kling <[email protected]>
[Qt][WK2] Views should expose QActions for basic navigation.
Modified: trunk/Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp (90685 => 90686)
--- trunk/Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp 2011-07-09 19:44:14 UTC (rev 90685)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp 2011-07-09 19:47:10 UTC (rev 90686)
@@ -308,11 +308,21 @@
return false;
}
-void NetscapePlugin::platformSetFocus(bool)
+void NetscapePlugin::platformSetFocus(bool hasFocus)
{
CurrentPluginSetter setCurrentPlugin(this);
- notImplemented();
+ if (m_isWindowed)
+ return;
+
+ controller()->willSendEventToPlugin();
+
+ NPEvent npEvent;
+ npEvent.event = hasFocus ? WM_SETFOCUS : WM_KILLFOCUS;
+ npEvent.wParam = 0;
+ npEvent.lParam = 0;
+
+ NPP_HandleEvent(&npEvent);
}
bool NetscapePlugin::platformHandleMouseEnterEvent(const WebMouseEvent& event)
_______________________________________________ webkit-changes mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes
