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

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

Issue 2641733002: Initial patch set to implement improved touch support for screen magnification (Closed)
Patch Set: Address comments. Created 3 years, 10 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
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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS, 2193 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS,
2194 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, 2194 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)},
2195 #endif // defined(OS_CHROMEOS) 2195 #endif // defined(OS_CHROMEOS)
2196 2196
2197 #if defined(OS_ANDROID) 2197 #if defined(OS_ANDROID)
2198 {"aia-fetching", IDS_FLAGS_AIA_FETCHING_NAME, 2198 {"aia-fetching", IDS_FLAGS_AIA_FETCHING_NAME,
2199 IDS_FLAGS_AIA_FETCHING_DESCRIPTION, kOsAndroid, 2199 IDS_FLAGS_AIA_FETCHING_DESCRIPTION, kOsAndroid,
2200 FEATURE_VALUE_TYPE(net::CertVerifyProcAndroid::kAIAFetchingFeature)}, 2200 FEATURE_VALUE_TYPE(net::CertVerifyProcAndroid::kAIAFetchingFeature)},
2201 #endif 2201 #endif
2202 2202
2203 #if defined(OS_CHROMEOS)
2204 {"enable-touch-support-for-screen-magnifier",
2205 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_NAME,
2206 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_DESCRIPTION,
2207 kOsCrOS,
2208 SINGLE_VALUE_TYPE(
2209 chromeos::switches::kEnableTouchSupportForScreenMagnifier)},
2210 #endif // OS_CHROMEOS
2211
2203 // NOTE: Adding new command-line switches requires adding corresponding 2212 // NOTE: Adding new command-line switches requires adding corresponding
2204 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2213 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2205 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2214 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2206 }; 2215 };
2207 2216
2208 class FlagsStateSingleton { 2217 class FlagsStateSingleton {
2209 public: 2218 public:
2210 FlagsStateSingleton() 2219 FlagsStateSingleton()
2211 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2220 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2212 ~FlagsStateSingleton() {} 2221 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2410 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2402 2411
2403 const FeatureEntry* GetFeatureEntries(size_t* count) { 2412 const FeatureEntry* GetFeatureEntries(size_t* count) {
2404 *count = arraysize(kFeatureEntries); 2413 *count = arraysize(kFeatureEntries);
2405 return kFeatureEntries; 2414 return kFeatureEntries;
2406 } 2415 }
2407 2416
2408 } // namespace testing 2417 } // namespace testing
2409 2418
2410 } // namespace about_flags 2419 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698