summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-15 21:51:19 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-15 21:51:19 +0000
commit997a47ac989abd294e94f8384f1eba6ad5698ad2 (patch)
tree5e1b92105eb5f52626c583953ed7204584e37885 /chrome/plugin
parentfa1cf0b87092ed3f3069a8549270f999e05cca20 (diff)
downloadchromium_src-997a47ac989abd294e94f8384f1eba6ad5698ad2.zip
chromium_src-997a47ac989abd294e94f8384f1eba6ad5698ad2.tar.gz
chromium_src-997a47ac989abd294e94f8384f1eba6ad5698ad2.tar.bz2
(Mac) Intercept (Carbon) cursor setting by plugins and forward it on properly.
BUG=http://crbug.com/20717 TEST=as in bug; this covers old Flash Review URL: http://codereview.chromium.org/550062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/plugin_interpose_util_mac.h6
-rw-r--r--chrome/plugin/plugin_interpose_util_mac.mm8
2 files changed, 14 insertions, 0 deletions
diff --git a/chrome/plugin/plugin_interpose_util_mac.h b/chrome/plugin/plugin_interpose_util_mac.h
index c68d1f2..75d1142 100644
--- a/chrome/plugin/plugin_interpose_util_mac.h
+++ b/chrome/plugin/plugin_interpose_util_mac.h
@@ -9,6 +9,8 @@
#import "base/basictypes.h"
+class WebPluginDelegateImpl;
+
namespace mac_plugin_interposing {
// Swizzles methods we need to watch in order to manage process and window
@@ -33,6 +35,10 @@ void NotifyBrowserOfPluginShowWindow(uint32 window_id, CGRect bounds,
// no remaining plugin windows.
void NotifyBrowserOfPluginHideWindow(uint32 window_id, CGRect bounds);
+// Sends a message to the plugin that a theme cursor was set.
+void NotifyPluginOfSetThemeCursor(WebPluginDelegateImpl* delegate,
+ ThemeCursor cursor);
+
} // namespace MacPluginInterpose
#endif // CHROME_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_
diff --git a/chrome/plugin/plugin_interpose_util_mac.mm b/chrome/plugin/plugin_interpose_util_mac.mm
index 58165e2..1cad1bb 100644
--- a/chrome/plugin/plugin_interpose_util_mac.mm
+++ b/chrome/plugin/plugin_interpose_util_mac.mm
@@ -9,6 +9,7 @@
#include "chrome/common/plugin_messages.h"
#include "chrome/plugin/plugin_thread.h"
+#include "webkit/glue/plugins/webplugin_delegate_impl.h"
namespace mac_plugin_interposing {
@@ -63,6 +64,13 @@ void NotifyBrowserOfPluginHideWindow(uint32 window_id, CGRect bounds) {
}
}
+__attribute__((visibility("default")))
+void NotifyPluginOfSetThemeCursor(WebPluginDelegateImpl* delegate,
+ ThemeCursor cursor) {
+ delegate->SetThemeCursor(cursor);
+}
+
+
} // namespace mac_plugin_interposing
#pragma mark -