summaryrefslogtreecommitdiffstats
path: root/chrome/common/plugin_messages_internal.h
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 19:41:56 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 19:41:56 +0000
commit1d5ac66b45c8e625fb4ec382d4e38e5357fdb257 (patch)
treeb98aaaafe5243bcd63d0db902d6c8bf1e415dec9 /chrome/common/plugin_messages_internal.h
parent4c98db35cdd001ce1585bc703375c92ec3ebea9b (diff)
downloadchromium_src-1d5ac66b45c8e625fb4ec382d4e38e5357fdb257.zip
chromium_src-1d5ac66b45c8e625fb4ec382d4e38e5357fdb257.tar.gz
chromium_src-1d5ac66b45c8e625fb4ec382d4e38e5357fdb257.tar.bz2
Fix several issues around fullscreen Mac plugins:
* Keystrokes are now properly sent to plugins in fullscreen mode * When a plugin creates a fullscreen window, we hide the menu bar and restore it when the window is closed BUG=19534,21020 TEST=Open a page with plugins that can go full screen (example: flash video players). Enter full screen mode and verify that esc, arrow keys, spacebar, etc. work as expected. Verify that the menu bar is hidden when the plugin goes fullscreen and is restored when it exits fullscreen mode. Review URL: http://codereview.chromium.org/257008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_messages_internal.h')
-rw-r--r--chrome/common/plugin_messages_internal.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/common/plugin_messages_internal.h b/chrome/common/plugin_messages_internal.h
index f03cf97..6301e68 100644
--- a/chrome/common/plugin_messages_internal.h
+++ b/chrome/common/plugin_messages_internal.h
@@ -123,6 +123,34 @@ IPC_BEGIN_MESSAGES(PluginProcessHost)
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)