diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 22:18:23 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 22:18:23 +0000 |
commit | d3766937d96f44abf9cfe5df3518fff8fc54bb90 (patch) | |
tree | 0c09efe8df64cb603200fed14d2ff1a298fd8a2e /chrome/test | |
parent | 96958c0ab3bbce1cadfadd94cb85da4a2fe9e737 (diff) | |
download | chromium_src-d3766937d96f44abf9cfe5df3518fff8fc54bb90.zip chromium_src-d3766937d96f44abf9cfe5df3518fff8fc54bb90.tar.gz chromium_src-d3766937d96f44abf9cfe5df3518fff8fc54bb90.tar.bz2 |
Fullscreen support for Lion.
XIB changes:
- Add new "Enter Presentation Mode" menu item with Cmd-Shift-F.
- Change key equivalent for "Enter Full Screen" to Cmd-Opt-F.
On Lion:
This CL separates the concepts of "fullscreen mode" and "presentation mode."
Fullscreen mode uses Lion's fullscreen mode and places the window in its own
space. Presentation mode is an extra option to additionally hide the UI when in
fullscreen mode. On Lion, clicking on the fullscreen button takes you into
fullscreen mode, in which there is a button to toggle presentation mode on or
off. While in normal windowed mode, there are two menu options to either "Enter
Full Screen" or "Enter Presentation Mode" directly.
On Snow Leopard:
This CL does not change much on Snow Leopard. To maintain consistency with the
new Lion terminology, the "Enter Full Screen" menu item has been renamed to
"Enter Presentation Mode."
BUG=74065
TEST=Fullscreen works in Lion. Fullscreen continues to work as before in Snow Leopard.
Review URL: http://codereview.chromium.org/7566016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/base/test_browser_window.cc | 6 | ||||
-rw-r--r-- | chrome/test/base/test_browser_window.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/test/base/test_browser_window.cc b/chrome/test/base/test_browser_window.cc index ac82c36..b355beb 100644 --- a/chrome/test/base/test_browser_window.cc +++ b/chrome/test/base/test_browser_window.cc @@ -88,6 +88,12 @@ int TestBrowserWindow::GetExtraRenderViewHeight() const { return 0; } +#if defined(OS_MACOSX) +bool TestBrowserWindow::InPresentationMode() { + return false; +} +#endif + gfx::Rect TestBrowserWindow::GetInstantBounds() { return gfx::Rect(); } diff --git a/chrome/test/base/test_browser_window.h b/chrome/test/base/test_browser_window.h index 171d77e..7502698 100644 --- a/chrome/test/base/test_browser_window.h +++ b/chrome/test/base/test_browser_window.h @@ -102,6 +102,8 @@ class TestBrowserWindow : public BrowserWindow { virtual void ToggleTabStripMode() OVERRIDE {} #if defined(OS_MACOSX) virtual void OpenTabpose() OVERRIDE {} + virtual void SetPresentationMode(bool presentation_mode) OVERRIDE {} + virtual bool InPresentationMode() OVERRIDE; #endif virtual void PrepareForInstant() OVERRIDE {} |