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

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

Issue 1130073002: Add entry to about:flags for scrollTopLeftInterop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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') | tools/metrics/histograms/histograms.xml » ('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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 SINGLE_VALUE_TYPE(autofill::switches::kEnableAccessorySuggestionView) 2429 SINGLE_VALUE_TYPE(autofill::switches::kEnableAccessorySuggestionView)
2430 }, 2430 },
2431 #endif // defined(OS_ANDROID) 2431 #endif // defined(OS_ANDROID)
2432 { 2432 {
2433 "enable-new-video-renderer", 2433 "enable-new-video-renderer",
2434 IDS_FLAGS_ENABLE_NEW_VIDEO_RENDERER_NAME, 2434 IDS_FLAGS_ENABLE_NEW_VIDEO_RENDERER_NAME,
2435 IDS_FLAGS_ENABLE_NEW_VIDEO_RENDERER_DESCRIPTION, 2435 IDS_FLAGS_ENABLE_NEW_VIDEO_RENDERER_DESCRIPTION,
2436 kOsAll, 2436 kOsAll,
2437 SINGLE_VALUE_TYPE(switches::kEnableNewVideoRenderer) 2437 SINGLE_VALUE_TYPE(switches::kEnableNewVideoRenderer)
2438 }, 2438 },
2439 // Temporary flag to ease the transition to standard-compliant scrollTop
2440 // behavior. Will be removed shortly after http://crbug.com/157855 ships.
2441 {
2442 "scroll-top-left-interop",
2443 IDS_FLAGS_SCROLL_TOP_LEFT_INTEROP_NAME,
2444 IDS_FLAGS_SCROLL_TOP_LEFT_INTEROP_DESCRIPTION,
2445 kOsAll,
2446 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
2447 switches::kEnableBlinkFeatures, "ScrollTopLeftInterop",
2448 switches::kDisableBlinkFeatures, "ScrollTopLeftInterop")
2449 }
2439 // NOTE: Adding new command-line switches requires adding corresponding 2450 // NOTE: Adding new command-line switches requires adding corresponding
2440 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2451 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2441 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2452 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2442 }; 2453 };
2443 2454
2444 const Experiment* experiments = kExperiments; 2455 const Experiment* experiments = kExperiments;
2445 size_t num_experiments = arraysize(kExperiments); 2456 size_t num_experiments = arraysize(kExperiments);
2446 2457
2447 // Stores and encapsulates the little state that about:flags has. 2458 // Stores and encapsulates the little state that about:flags has.
2448 class FlagsState { 2459 class FlagsState {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3017 } 3028 }
3018 3029
3019 const Experiment* GetExperiments(size_t* count) { 3030 const Experiment* GetExperiments(size_t* count) {
3020 *count = num_experiments; 3031 *count = num_experiments;
3021 return experiments; 3032 return experiments;
3022 } 3033 }
3023 3034
3024 } // namespace testing 3035 } // namespace testing
3025 3036
3026 } // namespace about_flags 3037 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698