Plug-ins should be able to update the mouse cursor
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Dec 2010 18:41:38 +0000 (18:41 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Dec 2010 18:41:38 +0000 (18:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=50399

Reviewed by Sam Weinig.

WebKit2:

Call WKEnableSettingCursorWhenInBackground.

* PluginProcess/mac/PluginProcessMainMac.mm:
(WebKit::PluginProcessMain):

WebKitLibraries:

Add WKEnableSettingCursorWhenInBackground.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73159 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit2/ChangeLog
WebKit2/PluginProcess/mac/PluginProcessMainMac.mm
WebKitLibraries/ChangeLog
WebKitLibraries/WebKitSystemInterface.h
WebKitLibraries/libWebKitSystemInterfaceLeopard.a
WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a

index fc0584fa4e8560b6269cccce3c3f78843236ea89..5b1e2f5d87c6d0d0b9aaea4c295edf659376002b 100644 (file)
@@ -1,3 +1,15 @@
+2010-12-02  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Sam Weinig.
+
+        Plug-ins should be able to update the mouse cursor
+        https://bugs.webkit.org/show_bug.cgi?id=50399
+
+        Call WKEnableSettingCursorWhenInBackground.
+
+        * PluginProcess/mac/PluginProcessMainMac.mm:
+        (WebKit::PluginProcessMain):
+
 2010-12-02  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Anders Carlsson.
index 48b2f695450bb78941b2bf4e79d845e8c343fa54..36cc2a1fa7183bcea461fa097cac2dff628d6df7 100644 (file)
@@ -34,6 +34,7 @@
 #include <servers/bootstrap.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/WTFString.h>
+#include <WebKitSystemInterface.h>
 
 // FIXME: We should be doing this another way.
 extern "C" kern_return_t bootstrap_look_up2(mach_port_t, const name_t, mach_port_t*, pid_t, uint64_t);
@@ -71,6 +72,10 @@ int PluginProcessMain(const CommandLine& commandLine)
     signal(SIGSEGV, _exit);
 #endif
 
+    // FIXME: It would be better to proxy set cursor calls over to the UI process instead of
+    // allowing plug-ins to change the mouse cursor at any time.
+    WKEnableSettingCursorWhenInBackground();
+
     JSC::initializeThreading();
     WTF::initializeMainThread();
     RunLoop::initializeMainRunLoop();
index 60cb1f60f44f3a86db8548566632db442a1a49c6..34e4e6d7bd9dda89b24f620aaaacd7eaa7218566 100644 (file)
@@ -1,3 +1,16 @@
+2010-12-02  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Sam Weinig.
+
+        Plug-ins should be able to update the mouse cursor
+        https://bugs.webkit.org/show_bug.cgi?id=50399
+
+        Add WKEnableSettingCursorWhenInBackground.
+
+        * WebKitSystemInterface.h:
+        * libWebKitSystemInterfaceLeopard.a:
+        * libWebKitSystemInterfaceSnowLeopard.a:
+
 2010-12-01  Adam Roben  <aroben@apple.com>
 
         Don't let harmless errorlevels from the "set" utility leak into
index d1353047061e2afed152c0d8507121c3f7ff0401..f2f00fe56c4492ff74217c6dfed164651603f499 100644 (file)
@@ -330,6 +330,8 @@ void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScale
 
 #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
 void WKSyncSurfaceToView(NSView *view);
+
+void WKEnableSettingCursorWhenInBackground(void);
 #endif
 
 #if defined(BUILDING_ON_TIGER) || defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
index 678342af39eb638d0993fe7e122d6439617d004c..cdee8a34cbd2201291e58b5db46f18e5fbbf9d81 100644 (file)
Binary files a/WebKitLibraries/libWebKitSystemInterfaceLeopard.a and b/WebKitLibraries/libWebKitSystemInterfaceLeopard.a differ
index 1f82d390c30253bdd682f26a20b30ce6fda68c06..2541fd776412137d616dc4186dfbc868fae51e72 100644 (file)
Binary files a/WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a and b/WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a differ