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

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

Issue 22963002: Adds a flag to enable accessibility tab switcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added if guard to generated_resources.grd Created 7 years, 4 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 #endif 1621 #endif
1622 #if defined(OS_CHROMEOS) 1622 #if defined(OS_CHROMEOS)
1623 { 1623 {
1624 "disable-user-image-sync", 1624 "disable-user-image-sync",
1625 IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_NAME, 1625 IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_NAME,
1626 IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_DESCRIPTION, 1626 IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_DESCRIPTION,
1627 kOsCrOS, 1627 kOsCrOS,
1628 SINGLE_VALUE_TYPE(chromeos::switches::kDisableUserImageSync) 1628 SINGLE_VALUE_TYPE(chromeos::switches::kDisableUserImageSync)
1629 }, 1629 },
1630 #endif 1630 #endif
1631 #if defined(OS_ANDROID)
1632 {
1633 "enable-accessibility-tab-switcher",
1634 IDS_FLAGS_ENABLE_ACCESSIBILITY_TAB_SWITCHER_NAME,
1635 IDS_FLAGS_ENABLE_ACCESSIBILITY_TAB_SWITCHER_DESCRIPTION,
1636 kOsAndroid,
1637 SINGLE_VALUE_TYPE(switches::kEnableAccessibilityTabSwitcher)
1638 }
1639 #endif
1631 }; 1640 };
1632 1641
1633 const Experiment* experiments = kExperiments; 1642 const Experiment* experiments = kExperiments;
1634 size_t num_experiments = arraysize(kExperiments); 1643 size_t num_experiments = arraysize(kExperiments);
1635 1644
1636 // Stores and encapsulates the little state that about:flags has. 1645 // Stores and encapsulates the little state that about:flags has.
1637 class FlagsState { 1646 class FlagsState {
1638 public: 1647 public:
1639 FlagsState() : needs_restart_(false) {} 1648 FlagsState() : needs_restart_(false) {}
1640 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1649 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 } 2121 }
2113 2122
2114 const Experiment* GetExperiments(size_t* count) { 2123 const Experiment* GetExperiments(size_t* count) {
2115 *count = num_experiments; 2124 *count = num_experiments;
2116 return experiments; 2125 return experiments;
2117 } 2126 }
2118 2127
2119 } // namespace testing 2128 } // namespace testing
2120 2129
2121 } // namespace about_flags 2130 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698