Chromium Code Reviews| Index: chrome/plugin/plugin_thread.cc |
| =================================================================== |
| --- chrome/plugin/plugin_thread.cc (revision 27721) |
| +++ chrome/plugin/plugin_thread.cc (working copy) |
| @@ -164,6 +164,48 @@ |
| return true; |
| } |
| +#if defined(OS_MACOSX) |
| +__attribute__((visibility("default"))) |
|
darin (slow to review)
2009/10/01 22:19:53
what's up with these GCC attributes?
Amanda Walker
2009/10/01 23:17:06
They allow the interposed library that we use to i
|
| +void NotifyBrowserOfPluginSelectWindow(uint32 window_id, CGRect bounds) { |
| + PluginThread* plugin_thread = PluginThread::current(); |
| + if (plugin_thread) { |
| + gfx::Rect window_bounds(bounds); |
| + plugin_thread->Send( |
| + new PluginProcessHostMsg_PluginSelectWindow(window_id, window_bounds)); |
| + } |
| +} |
| + |
| +__attribute__((visibility("default"))) |
| +void NotifyBrowserOfPluginShowWindow(uint32 window_id, CGRect bounds) { |
| + PluginThread* plugin_thread = PluginThread::current(); |
| + if (plugin_thread) { |
| + gfx::Rect window_bounds(bounds); |
| + plugin_thread->Send( |
| + new PluginProcessHostMsg_PluginShowWindow(window_id, window_bounds)); |
| + } |
| +} |
| + |
| +__attribute__((visibility("default"))) |
| +void NotifyBrowserOfPluginHideWindow(uint32 window_id, CGRect bounds) { |
| + PluginThread* plugin_thread = PluginThread::current(); |
| + if (plugin_thread) { |
| + gfx::Rect window_bounds(bounds); |
| + plugin_thread->Send( |
| + new PluginProcessHostMsg_PluginHideWindow(window_id, window_bounds)); |
| + } |
| +} |
| + |
| +__attribute__((visibility("default"))) |
| +void NotifyBrowserOfPluginDisposeWindow(uint32 window_id, CGRect bounds) { |
| + PluginThread* plugin_thread = PluginThread::current(); |
| + if (plugin_thread) { |
| + gfx::Rect window_bounds(bounds); |
| + plugin_thread->Send( |
| + new PluginProcessHostMsg_PluginDisposeWindow(window_id, window_bounds)); |
| + } |
| +} |
| +#endif |
| + |
| bool IsDefaultPluginEnabled() { |
| #if defined(OS_WIN) |
| return true; |