diff options
author | scheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-18 18:03:51 +0000 |
---|---|---|
committer | scheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-18 18:03:51 +0000 |
commit | 0ef60d08bfdf9c9f961336cf67a710808606d0ec (patch) | |
tree | a2e59e21e0ed6340fde3ae3f29f21436b34561f5 | |
parent | 54a75c1e72a48dd45965cbf236ff7705306a8df8 (diff) | |
download | chromium_src-0ef60d08bfdf9c9f961336cf67a710808606d0ec.zip chromium_src-0ef60d08bfdf9c9f961336cf67a710808606d0ec.tar.gz chromium_src-0ef60d08bfdf9c9f961336cf67a710808606d0ec.tar.bz2 |
Remove mouse lock / pointer lock flags.
BUG=137172
Review URL: https://chromiumcodereview.appspot.com/10917278
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157381 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/about_flags.cc | 22 | ||||
-rw-r--r-- | chrome/browser/ui/browser_browsertest.cc | 5 | ||||
-rw-r--r-- | chrome/browser/ui/fullscreen/fullscreen_controller.cc | 8 | ||||
-rw-r--r-- | chrome/browser/ui/fullscreen/fullscreen_controller_test.cc | 4 | ||||
-rw-r--r-- | chrome/browser/ui/fullscreen/fullscreen_controller_test.h | 1 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 5 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 | ||||
-rw-r--r-- | content/browser/renderer_host/render_process_host_impl.cc | 2 | ||||
-rw-r--r-- | content/public/common/content_switches.cc | 6 | ||||
-rw-r--r-- | content/public/common/content_switches.h | 2 | ||||
-rw-r--r-- | content/renderer/render_thread_impl.cc | 3 |
11 files changed, 1 insertions, 58 deletions
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc index e793d21..ee0d90f 100644 --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc @@ -141,14 +141,6 @@ const Experiment::Choice kTouchOptimizedUIChoices[] = { switches::kTouchOptimizedUIDisabled } }; -const Experiment::Choice kPointerLockUIChoices[] = { - { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, - { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, - switches::kEnablePointerLock, ""}, - { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, - switches::kDisablePointerLock, ""} -}; - const Experiment::Choice kAsyncDnsChoices[] = { { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, @@ -548,13 +540,6 @@ const Experiment kExperiments[] = { kOsAll, SINGLE_VALUE_TYPE(switches::kEnableEncryptedMedia) }, - { - "enable-pointer-lock", - IDS_FLAGS_ENABLE_POINTER_LOCK_NAME, - IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION, - kOsAll, - MULTI_VALUE_TYPE(kPointerLockUIChoices) - }, #if defined(USE_ASH) { "aura-google-dialog-frames", @@ -871,13 +856,6 @@ const Experiment kExperiments[] = { kOsWin | kOsCrOS, SINGLE_VALUE_TYPE(switches::kEnableFramelessConstrainedDialogs), }, - { - "disable-non-fullscreen-mouse-lock", - IDS_FLAGS_DISABLE_NON_FULLSCREEN_MOUSE_LOCK_NAME, - IDS_FLAGS_DISABLE_NON_FULLSCREEN_MOUSE_LOCK_DESCRIPTION, - kOsAll, - SINGLE_VALUE_TYPE(switches::kDisableNonFullscreenMouseLock), - }, #if defined(OS_CHROMEOS) { "enable-unsupported-bluetooth-devices", diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc index d44901a..e78f019 100644 --- a/chrome/browser/ui/browser_browsertest.cc +++ b/chrome/browser/ui/browser_browsertest.cc @@ -187,11 +187,6 @@ class TestInterstitialPage : public content::InterstitialPageDelegate { class BrowserTest : public ExtensionBrowserTest { protected: - virtual void SetUpCommandLine(CommandLine* command_line) { - ExtensionBrowserTest::SetUpCommandLine(command_line); - command_line->AppendSwitch(switches::kEnablePointerLock); - } - // In RTL locales wrap the page title with RTL embedding characters so that it // matches the value returned by GetWindowTitle(). string16 LocaleWindowCaptionFromPageTitle(const string16& expected_title) { diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.cc b/chrome/browser/ui/fullscreen/fullscreen_controller.cc index 236bc2e..d1fcc63 100644 --- a/chrome/browser/ui/fullscreen/fullscreen_controller.cc +++ b/chrome/browser/ui/fullscreen/fullscreen_controller.cc @@ -170,14 +170,6 @@ void FullscreenController::RequestToLockMouse(WebContents* web_contents, DCHECK(!IsMouseLocked()); NotifyMouseLockChange(); - // Check for command line switch disabling mouse lock when not tab fullscreen. - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kDisableNonFullscreenMouseLock) && - !IsFullscreenForTabOrPending(web_contents)) { - web_contents->GotResponseToLockMouseRequest(false); - return; - } - // Must have a user gesture to prevent misbehaving sites from constantly // re-locking the mouse. Exceptions are when the page has unlocked // (i.e. not the user), or if we're in tab fullscreen (user gesture required diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc b/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc index cdc4631..da86e2a 100644 --- a/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc +++ b/chrome/browser/ui/fullscreen/fullscreen_controller_test.cc @@ -19,10 +19,6 @@ using content::WebContents; const char FullscreenControllerTest::kFullscreenMouseLockHTML[] = "files/fullscreen_mouselock/fullscreen_mouselock.html"; -void FullscreenControllerTest::SetUpCommandLine(CommandLine* command_line) { - command_line->AppendSwitch(switches::kEnablePointerLock); -} - void FullscreenControllerTest::RequestToLockMouse( bool user_gesture, bool last_unlocked_by_target) { diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller_test.h b/chrome/browser/ui/fullscreen/fullscreen_controller_test.h index baaea67..eee66d9 100644 --- a/chrome/browser/ui/fullscreen/fullscreen_controller_test.h +++ b/chrome/browser/ui/fullscreen/fullscreen_controller_test.h @@ -38,7 +38,6 @@ class FullscreenControllerTest : public InProcessBrowserTest { protected: FullscreenControllerTest() {} - virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; void RequestToLockMouse(bool user_gesture, bool last_unlocked_by_target); void LostMouseLock(); diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index ecbd658..b77aa6c 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -348,11 +348,6 @@ const char kDisableIPv6[] = "disable-ipv6"; // attempt to use the existing connection. const char kDisableIPPooling[] = "disable-ip-pooling"; -// Disables Mouse Lock being permitted when the browser is not currently -// in tab fullscreen. -const char kDisableNonFullscreenMouseLock[] = - "disable-non-fullscreen-mouse-lock"; - // Disables the menu on the NTP for accessing sessions from other devices. const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 06afe44..73757b0 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -99,7 +99,6 @@ extern const char kDisableInfiniteCache[]; extern const char kDisableInternalFlash[]; extern const char kDisableIPv6[]; extern const char kDisableIPPooling[]; -extern const char kDisableNonFullscreenMouseLock[]; extern const char kDisableNTPOtherSessionsMenu[]; extern const char kDisablePopupBlocking[]; extern const char kDisablePreconnect[]; diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index 61ab2f4..3ef5117 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -763,7 +763,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( switches::kDisableJavaScriptI18NAPI, switches::kDisableLocalStorage, switches::kDisableLogging, - switches::kDisablePointerLock, switches::kDisableSeccompFilterSandbox, switches::kDisableSeccompSandbox, switches::kDisableSessionStorage, @@ -795,7 +794,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( switches::kEnableStrictSiteIsolation, switches::kDisableFullScreen, switches::kEnablePepperTesting, - switches::kEnablePointerLock, switches::kEnablePreparsedJsCaching, switches::kEnablePruneGpuCommandBuffers, switches::kEnablePinch, diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc index 0026aa8..ff8378c 100644 --- a/content/public/common/content_switches.cc +++ b/content/public/common/content_switches.cc @@ -168,9 +168,6 @@ const char kDisableLogging[] = "disable-logging"; // Prevent plugins from running. const char kDisablePlugins[] = "disable-plugins"; -// Disable the JavaScript Pointer Lock API. -const char kDisablePointerLock[] = "disable-pointer-lock"; - // Disables remote web font support. SVG font should always work whether this // option is specified or not. const char kDisableRemoteFonts[] = "disable-remote-fonts"; @@ -279,9 +276,6 @@ const char kEnableFixedLayout[] = "enable-fixed-layout"; // Enable the JavaScript Full Screen API. const char kDisableFullScreen[] = "disable-fullscreen"; -// Enable the JavaScript Pointer Lock API. -const char kEnablePointerLock[] = "enable-pointer-lock"; - // Enable Text Service Framework(TSF) for text inputting instead of IMM32. This // flag is ignored on Metro environment. const char kEnableTextServicesFramework[] = "enable-text-services-framework"; diff --git a/content/public/common/content_switches.h b/content/public/common/content_switches.h index cdeff20..370eff18 100644 --- a/content/public/common/content_switches.h +++ b/content/public/common/content_switches.h @@ -66,7 +66,6 @@ CONTENT_EXPORT extern const char kDisableLocalStorage[]; CONTENT_EXPORT extern const char kDisableLogging[]; CONTENT_EXPORT extern const char kDisableSmoothScrolling[]; CONTENT_EXPORT extern const char kDisablePlugins[]; -extern const char kDisablePointerLock[]; extern const char kDisableRemoteFonts[]; extern const char kDisableRendererAccessibility[]; extern const char kDisableSSLFalseStart[]; @@ -100,7 +99,6 @@ extern const char kEnableExperimentalWebKitFeatures[]; extern const char kEnableFastback[]; CONTENT_EXPORT extern const char kEnableFixedLayout[]; CONTENT_EXPORT extern const char kDisableFullScreen[]; -extern const char kEnablePointerLock[]; CONTENT_EXPORT extern const char kEnableTextServicesFramework[]; extern const char kEnableGestureTapHighlight[]; extern const char kEnableGpuBenchmarking[]; diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc index adc7b16..467dfb8 100644 --- a/content/renderer/render_thread_impl.cc +++ b/content/renderer/render_thread_impl.cc @@ -658,8 +658,7 @@ void RenderThreadImpl::EnsureWebKitInitialized() { WebKit::WebRuntimeFeatures::enableFullScreenAPI( !command_line.HasSwitch(switches::kDisableFullScreen)); - WebKit::WebRuntimeFeatures::enablePointerLock( - !command_line.HasSwitch(switches::kDisablePointerLock)); + WebKit::WebRuntimeFeatures::enablePointerLock(true); WebKit::WebRuntimeFeatures::enableEncryptedMedia( command_line.HasSwitch(switches::kEnableEncryptedMedia)); |