Skip to content

Commit

Permalink
Change enable-fullscreen flag to disable-fullscreen.
Browse files Browse the repository at this point in the history
BUG=73923
TEST=Chrome should have the JS Fullscreen API enabled by default, and starting chrome with --disable-fullscreen should turn it off.


Review URL: http://codereview.chromium.org/7826028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100076 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
koz@chromium.org committed Sep 8, 2011
1 parent a03403c commit 5e5671a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
web_prefs.interactive_form_validation_enabled =
!command_line.HasSwitch(switches::kDisableInteractiveFormValidation);
web_prefs.fullscreen_enabled =
command_line.HasSwitch(switches::kEnableFullScreen);
!command_line.HasSwitch(switches::kDisableFullScreen);
web_prefs.allow_displaying_insecure_content =
prefs->GetBoolean(prefs::kWebKitAllowDisplayingInsecureContent);
web_prefs.allow_running_insecure_content =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer(
switches::kEnableGPUClientLogging,
switches::kEnableLogging,
switches::kEnableMediaStream,
switches::kEnableFullScreen,
switches::kDisableFullScreen,
switches::kEnablePepperTesting,
#if defined(OS_MACOSX)
// Allow this to be set when invoking the browser and relayed along.
Expand Down
2 changes: 1 addition & 1 deletion content/common/content_switches.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const char kEnableDNSCertProvenanceChecking[] =
const char kEnableDeviceMotion[] = "enable-device-motion";

// Enable the JavaScript Full Screen API.
const char kEnableFullScreen[] = "enable-fullscreen";
const char kDisableFullScreen[] = "disable-fullscreen";

// Enable the GPU plugin and Pepper 3D rendering.
const char kEnableGPUPlugin[] = "enable-gpu-plugin";
Expand Down
2 changes: 1 addition & 1 deletion content/common/content_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extern const char kEnableAccessibilityLogging[];
extern const char kEnableBenchmarking[];
extern const char kEnableDNSCertProvenanceChecking[];
extern const char kEnableDeviceMotion[];
extern const char kEnableFullScreen[];
extern const char kDisableFullScreen[];
extern const char kEnableGPUPlugin[];
extern const char kEnableLogging[];
extern const char kEnableMediaStream[];
Expand Down
2 changes: 1 addition & 1 deletion content/renderer/render_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void RenderThread::EnsureWebKitInitialized() {
command_line.HasSwitch(switches::kEnableMediaStream));

WebKit::WebRuntimeFeatures::enableFullScreenAPI(
command_line.HasSwitch(switches::kEnableFullScreen));
!command_line.HasSwitch(switches::kDisableFullScreen));

#if defined(OS_CHROMEOS)
// TODO(crogers): enable once Web Audio has been tested and optimized.
Expand Down

0 comments on commit 5e5671a

Please sign in to comment.