OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/plugin/plugin_interpose_util_mac.h" | 5 #include "content/plugin/plugin_interpose_util_mac.h" |
6 | 6 |
7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 #import <objc/runtime.h> | 8 #import <objc/runtime.h> |
9 | 9 |
10 #include "content/common/plugin_messages.h" | 10 #include "content/common/plugin_process_messages.h" |
11 #include "content/plugin/plugin_thread.h" | 11 #include "content/plugin/plugin_thread.h" |
12 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 12 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
13 | 13 |
14 using content::PluginThread; | 14 using content::PluginThread; |
15 | 15 |
16 namespace mac_plugin_interposing { | 16 namespace mac_plugin_interposing { |
17 | 17 |
18 // TODO(stuartmorgan): Make this an IPC to order the plugin process above the | 18 // TODO(stuartmorgan): Make this an IPC to order the plugin process above the |
19 // browser process only if the browser is current frontmost. | 19 // browser process only if the browser is current frontmost. |
20 __attribute__((visibility("default"))) | 20 __attribute__((visibility("default"))) |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 Class nscursor_class = [NSCursor class]; | 268 Class nscursor_class = [NSCursor class]; |
269 ExchangeMethods(nscursor_class, NO, @selector(set), | 269 ExchangeMethods(nscursor_class, NO, @selector(set), |
270 @selector(chromePlugin_set)); | 270 @selector(chromePlugin_set)); |
271 ExchangeMethods(nscursor_class, YES, @selector(hide), | 271 ExchangeMethods(nscursor_class, YES, @selector(hide), |
272 @selector(chromePlugin_hide)); | 272 @selector(chromePlugin_hide)); |
273 ExchangeMethods(nscursor_class, YES, @selector(unhide), | 273 ExchangeMethods(nscursor_class, YES, @selector(unhide), |
274 @selector(chromePlugin_unhide)); | 274 @selector(chromePlugin_unhide)); |
275 } | 275 } |
276 | 276 |
277 } // namespace mac_plugin_interposing | 277 } // namespace mac_plugin_interposing |
OLD | NEW |