Title: [89461] trunk/Source/WebKit2
Revision
89461
Author
[email protected]
Date
2011-06-22 12:55:35 -0700 (Wed, 22 Jun 2011)

Log Message

2011-06-22  Balazs Kelemen  <[email protected]>

        Reviewed by Darin Adler.

        [X11][WK2] Implement NetscapePlugin::platformSetFocus
        https://bugs.webkit.org/show_bug.cgi?id=63154

        * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
        (WebKit::NetscapePlugin::platformSetFocus):
        Implement focus setting based on the WebKit1 path.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (89460 => 89461)


--- trunk/Source/WebKit2/ChangeLog	2011-06-22 19:55:23 UTC (rev 89460)
+++ trunk/Source/WebKit2/ChangeLog	2011-06-22 19:55:35 UTC (rev 89461)
@@ -1,3 +1,14 @@
+2011-06-22  Balazs Kelemen  <[email protected]>
+
+        Reviewed by Darin Adler.
+
+        [X11][WK2] Implement NetscapePlugin::platformSetFocus
+        https://bugs.webkit.org/show_bug.cgi?id=63154
+
+        * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
+        (WebKit::NetscapePlugin::platformSetFocus):
+        Implement focus setting based on the WebKit1 path.
+
 2011-06-22  Eunmi Lee  <[email protected]>
 
         Reviewed by Martin Robinson.

Modified: trunk/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp (89460 => 89461)


--- trunk/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp	2011-06-22 19:55:23 UTC (rev 89460)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp	2011-06-22 19:55:35 UTC (rev 89461)
@@ -435,7 +435,17 @@
 
 void NetscapePlugin::platformSetFocus(bool)
 {
-    notImplemented();
+    if (m_isWindowed)
+        return;
+
+    XEvent xEvent;
+    initializeXEvent(xEvent);
+    XFocusChangeEvent& focusEvent = xEvent.xfocus;
+    focusEvent.type = focusIn ? kFocusInType : kFocusOutType;
+    focusEvent.mode = NotifyNormal;
+    focusEvent.detail = NotifyDetailNone;
+
+    NPP_HandleEvent(&xEvent);
 }
 
 bool NetscapePlugin::platformHandleMouseEnterEvent(const WebMouseEvent& event)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to