Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added an unittest and thread checker. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) 1837 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock)
1838 }, 1838 },
1839 #endif 1839 #endif
1840 { 1840 {
1841 "enable-embedded-shared-worker", 1841 "enable-embedded-shared-worker",
1842 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME, 1842 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME,
1843 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION, 1843 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION,
1844 kOsDesktop, 1844 kOsDesktop,
1845 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker) 1845 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker)
1846 }, 1846 },
1847 #if defined(USE_AURA)
1848 {
1849 "text-input-focus-manager",
1850 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME,
1851 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION,
1852 kOsCrOS | kOsLinux | kOsWin,
1853 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager,
1854 switches::kDisableTextInputFocusManager)
1855 },
1856 #endif
1847 }; 1857 };
1848 1858
1849 const Experiment* experiments = kExperiments; 1859 const Experiment* experiments = kExperiments;
1850 size_t num_experiments = arraysize(kExperiments); 1860 size_t num_experiments = arraysize(kExperiments);
1851 1861
1852 // Stores and encapsulates the little state that about:flags has. 1862 // Stores and encapsulates the little state that about:flags has.
1853 class FlagsState { 1863 class FlagsState {
1854 public: 1864 public:
1855 FlagsState() : needs_restart_(false) {} 1865 FlagsState() : needs_restart_(false) {}
1856 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1866 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 } 2371 }
2362 2372
2363 const Experiment* GetExperiments(size_t* count) { 2373 const Experiment* GetExperiments(size_t* count) {
2364 *count = num_experiments; 2374 *count = num_experiments;
2365 return experiments; 2375 return experiments;
2366 } 2376 }
2367 2377
2368 } // namespace testing 2378 } // namespace testing
2369 2379
2370 } // namespace about_flags 2380 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698