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 /base/mac_util.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 'base/mac_util.h')
-rw-r--r-- | base/mac_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/mac_util.h b/base/mac_util.h index 3c99b2a..093ae63 100644 --- a/base/mac_util.h +++ b/base/mac_util.h @@ -75,6 +75,9 @@ void RequestFullScreen(); // this will show the menu bar. Must be called on main thread. void ReleaseFullScreen(); +// Activates the process with the given PID. +void ActivateProcess(pid_t); + // Pulls a snapshot of the entire browser into png_representation. void GrabWindowSnapshot(NSWindow* window, std::vector<unsigned char>* png_representation); |