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

Unified Diff: chrome/common/plugin_messages_internal.h

Issue 257008: Fix several issues around fullscreen Mac plugins:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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
Index: chrome/common/plugin_messages_internal.h
===================================================================
--- chrome/common/plugin_messages_internal.h (revision 27721)
+++ chrome/common/plugin_messages_internal.h (working copy)
@@ -123,6 +123,34 @@
gfx::PluginWindowHandle /* output: X window id */)
#endif
+#if defined(OS_MACOSX)
+ // On Mac OS X, we need the browser to keep track of plugin windows so
+ // that it can add and remove them from stacking groups, hide and show the
+ // menu bar, etc. We pass the window rect for convenience so that the
+ // browser can easily tell if the window is fullscreen.
+
+ // Notifies the browser that the plugin has selected a window (i.e., brought
+ // it to the front and wants it to have keyboard focus).
+ IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginSelectWindow,
+ uint32 /* window ID */,
+ gfx::Rect /* window rect */)
+
+ // Notifies the browser that the plugin has shown a window.
+ IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginShowWindow,
+ uint32 /* window ID */,
+ gfx::Rect /* window rect */)
+
+ // Notifies the browser that the plugin has hidden a window.
+ IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow,
+ uint32 /* window ID */,
+ gfx::Rect /* window rect */)
+
+ // Notifies the browser that the plugin has disposed of a window.
+ IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginDisposeWindow,
+ uint32 /* window ID */,
+ gfx::Rect /* window rect */)
+#endif
+
IPC_END_MESSAGES(PluginProcessHost)

Powered by Google App Engine
This is Rietveld 408576698