diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 17:27:08 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 17:27:08 +0000 |
commit | a96ec6a0045c0b1926c9e4c553b67e42a43a430b (patch) | |
tree | 017387bccd62964c28a0892b78614a0f1820282e /chrome/plugin/plugin_thread.h | |
parent | 39a2e833dc1983b78e9cf78df3d8f3cda3f150c9 (diff) | |
download | chromium_src-a96ec6a0045c0b1926c9e4c553b67e42a43a430b.zip chromium_src-a96ec6a0045c0b1926c9e4c553b67e42a43a430b.tar.gz chromium_src-a96ec6a0045c0b1926c9e4c553b67e42a43a430b.tar.bz2 |
Don't allow the browser to stay above a modal plugin window (Mac)
There's a flicker of the modal window being hidden then coming forward again, and the menus still work, so we'll most likely have fake the modality more aggressively at some point. This gets us the basic infrastructure though, and solves the severe usability problem.
BUG=20798
TEST=Open a modal plugin window (e.g., Gmail upload). Switch to another app, then back to Chrome; the plugin window should come to the front.
Review URL: http://codereview.chromium.org/355021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/plugin_thread.h')
-rw-r--r-- | chrome/plugin/plugin_thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/plugin/plugin_thread.h b/chrome/plugin/plugin_thread.h index c6f05ba..435d8c3 100644 --- a/chrome/plugin/plugin_thread.h +++ b/chrome/plugin/plugin_thread.h @@ -35,6 +35,9 @@ class PluginThread : public ChildThread { // Callback for when a channel has been created. void OnCreateChannel(int renderer_id, bool off_the_record); void OnPluginMessage(const std::vector<uint8> &data); +#if defined(OS_MACOSX) + void OnAppActivated(); +#endif // The plugin module which is preloaded in Init base::NativeLibrary preloaded_plugin_module_; |