Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: chrome/common/plugin_messages_internal.h

Issue 399090: Mac: Simulate the OS-level focus handling that windows and linux plugins... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | chrome/plugin/plugin_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/plugin_messages_internal.h
===================================================================
--- chrome/common/plugin_messages_internal.h (revision 32617)
+++ chrome/common/plugin_messages_internal.h (working copy)
@@ -47,6 +47,15 @@
bool /* on or off */)
#endif
+#if defined(OS_MACOSX)
+ // Notifies a plugin process that keyboard focus has changed. If another
+ // plugin instance has received focus, the process and instance IDs are
+ // passed as parameters; if focus has been taken away from a plugin, 0 is
+ // passed for both parameters.
+ IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginFocusNotify,
+ uint32 /* instance ID */)
+#endif
+
IPC_END_MESSAGES(PluginProcess)
@@ -151,6 +160,11 @@
IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginDisposeWindow,
uint32 /* window ID */,
gfx::Rect /* window rect */)
+
+ // Notifies the browser that a plugin instance has received keyboard focus
+ IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginReceivedFocus,
+ uint32 /* process ID */,
+ uint32 /* instance ID */)
#endif
IPC_END_MESSAGES(PluginProcessHost)
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | chrome/plugin/plugin_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698