summaryrefslogtreecommitdiffstats
path: root/base/mac_util.h
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-11 19:02:15 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-11 19:02:15 +0000
commitb44dbd15aeb4dbe7a5be36f7f5c55e6cddf0bac9 (patch)
tree128c569144246a05d04d8f2e4b451de6706df7d8 /base/mac_util.h
parent77ea4960c1d0d70ce9edb0eb8b00c5f32939fb2f (diff)
downloadchromium_src-b44dbd15aeb4dbe7a5be36f7f5c55e6cddf0bac9.zip
chromium_src-b44dbd15aeb4dbe7a5be36f7f5c55e6cddf0bac9.tar.gz
chromium_src-b44dbd15aeb4dbe7a5be36f7f5c55e6cddf0bac9.tar.bz2
Change Mac fullscreen mode to be a stack, not a flag. This fixes crashes and
misbehavior of fullscreen browser windows and plugins, especially when they interact. BUG=23571,24216 TEST=open up multiple browser windows, make them fullscreen, and go to pages (such as video players) that can invoke full screen plugins. The menu bar should hide when the first window becomes fullscreen, show again after the last window stops being fullscreen, and not crash at any of those transitions. Review URL: http://codereview.chromium.org/269022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac_util.h')
-rw-r--r--base/mac_util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/base/mac_util.h b/base/mac_util.h
index 0baab02..fc886e54 100644
--- a/base/mac_util.h
+++ b/base/mac_util.h
@@ -60,6 +60,18 @@ CGColorSpaceRef GetSRGBColorSpace();
// is a static value; do not release it!
CGColorSpaceRef GetSystemColorSpace();
+// Add a request for full screen mode. This does not by itself create a
+// fullscreen window; rather, it manages per-application state related to
+// fullscreen windows. For example, if the menu bar is not currently
+// hidden, this will hide it. Must be called on main thread.
+void RequestFullScreen();
+
+// Release a request for full screen mode. As with RequestFullScree(), this
+// does not affect windows directly, but rather manages per-application state.
+// For example, if there are no other outstanding requests for full screen,
+// this will show the menu bar. Must be called on main thread.
+void ReleaseFullScreen();
+
} // namespace mac_util
#endif // BASE_MAC_UTIL_H_