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/common | |
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/common')
-rw-r--r-- | chrome/common/pref_names.cc | 5 | ||||
-rw-r--r-- | chrome/common/pref_names.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index 573c735..fd8833d 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -742,6 +742,11 @@ const char kEnableHyperlinkAuditing[] = "enable_a_ping"; // Whether to enable sending referrers. const char kEnableReferrers[] = "enable_referrers"; +#if defined(OS_MACOSX) +// Whether presentation mode is enabled for fullscreen (used on Lion only). +const char kPresentationModeEnabled[] = "presentation_mode_enabled"; +#endif + #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) // The local profile id for this profile. const char kLocalProfileId[] = "profile.local_profile_id"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index 3d008e4..6b54fa8 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -254,6 +254,10 @@ extern const char kDisable3DAPIs[]; extern const char kEnableHyperlinkAuditing[]; extern const char kEnableReferrers[]; +#if defined(OS_MACOSX) +extern const char kPresentationModeEnabled[]; +#endif + #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) extern const char kLocalProfileId[]; extern const char kPasswordsUseLocalProfileId[]; |