| Index: chrome/plugin/plugin_interpose_util_mac.mm
|
| ===================================================================
|
| --- chrome/plugin/plugin_interpose_util_mac.mm (revision 36533)
|
| +++ chrome/plugin/plugin_interpose_util_mac.mm (working copy)
|
| @@ -75,7 +75,6 @@
|
| delegate->SetThemeCursor(cursor);
|
| }
|
|
|
| -
|
| } // namespace mac_plugin_interposing
|
|
|
| #pragma mark -
|
| @@ -169,6 +168,23 @@
|
|
|
| @end
|
|
|
| +@interface NSCursor (ChromePluginInterposing)
|
| +- (void)chromePlugin_set;
|
| +@end
|
| +
|
| +@implementation NSCursor (ChromePluginInterposing)
|
| +
|
| +- (void)chromePlugin_set {
|
| + WebPluginDelegateImpl* delegate = mac_plugin_interposing::GetActiveDelegate();
|
| + if (delegate) {
|
| + delegate->SetNSCursor(self);
|
| + return;
|
| + }
|
| + [self chromePlugin_set];
|
| +}
|
| +
|
| +@end
|
| +
|
| #pragma mark -
|
|
|
| static void ExchangeMethods(Class target_class, SEL original, SEL replacement) {
|
| @@ -195,6 +211,9 @@
|
|
|
| ExchangeMethods([NSApplication class], @selector(runModalForWindow:),
|
| @selector(chromePlugin_runModalForWindow:));
|
| +
|
| + ExchangeMethods([NSCursor class], @selector(set),
|
| + @selector(chromePlugin_set));
|
| }
|
|
|
| } // namespace mac_plugin_interposing
|
|
|