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

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

Issue 10667023: Revert 143931 - Enable Pointer Lock by default, change about:flags option to multi-select. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Property Changes:
Deleted: svn:mergeinfo
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const Experiment::Choice kTouchOptimizedUIChoices[] = { 124 const Experiment::Choice kTouchOptimizedUIChoices[] = {
125 { IDS_FLAGS_TOUCH_OPTIMIZED_UI_AUTOMATIC, "", "" }, 125 { IDS_FLAGS_TOUCH_OPTIMIZED_UI_AUTOMATIC, "", "" },
126 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, 126 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
127 switches::kTouchOptimizedUI, 127 switches::kTouchOptimizedUI,
128 switches::kTouchOptimizedUIEnabled }, 128 switches::kTouchOptimizedUIEnabled },
129 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, 129 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
130 switches::kTouchOptimizedUI, 130 switches::kTouchOptimizedUI,
131 switches::kTouchOptimizedUIDisabled } 131 switches::kTouchOptimizedUIDisabled }
132 }; 132 };
133 133
134 const Experiment::Choice kPointerLockUIChoices[] = {
135 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
136 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
137 switches::kEnablePointerLock, ""},
138 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
139 switches::kDisablePointerLock, ""}
140 };
141
142 134
143 // RECORDING USER METRICS FOR FLAGS: 135 // RECORDING USER METRICS FOR FLAGS:
144 // ----------------------------------------------------------------------------- 136 // -----------------------------------------------------------------------------
145 // The first line of the experiment is the internal name. If you'd like to 137 // The first line of the experiment is the internal name. If you'd like to
146 // gather statistics about the usage of your flag, you should append a marker 138 // gather statistics about the usage of your flag, you should append a marker
147 // comment to the end of the feature name, like so: 139 // comment to the end of the feature name, like so:
148 // "my-special-feature", // FLAGS:RECORD_UMA 140 // "my-special-feature", // FLAGS:RECORD_UMA
149 // 141 //
150 // After doing that, run //chrome/tools/extract_actions.py (see instructions at 142 // After doing that, run //chrome/tools/extract_actions.py (see instructions at
151 // the top of that file for details) to update the chromeactions.txt file, which 143 // the top of that file for details) to update the chromeactions.txt file, which
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 IDS_FLAGS_ENABLE_ENCRYPTED_MEDIA_NAME, 511 IDS_FLAGS_ENABLE_ENCRYPTED_MEDIA_NAME,
520 IDS_FLAGS_ENABLE_ENCRYPTED_MEDIA_DESCRIPTION, 512 IDS_FLAGS_ENABLE_ENCRYPTED_MEDIA_DESCRIPTION,
521 kOsAll, 513 kOsAll,
522 SINGLE_VALUE_TYPE(switches::kEnableEncryptedMedia) 514 SINGLE_VALUE_TYPE(switches::kEnableEncryptedMedia)
523 }, 515 },
524 { 516 {
525 "enable-pointer-lock", 517 "enable-pointer-lock",
526 IDS_FLAGS_ENABLE_POINTER_LOCK_NAME, 518 IDS_FLAGS_ENABLE_POINTER_LOCK_NAME,
527 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION, 519 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION,
528 kOsAll, 520 kOsAll,
529 MULTI_VALUE_TYPE(kPointerLockUIChoices) 521 SINGLE_VALUE_TYPE(switches::kEnablePointerLock)
530 }, 522 },
531 #if defined(USE_ASH) 523 #if defined(USE_ASH)
532 { 524 {
533 "aura-google-dialog-frames", 525 "aura-google-dialog-frames",
534 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_NAME, 526 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_NAME,
535 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_DESCRIPTION, 527 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_DESCRIPTION,
536 kOsWin | kOsLinux | kOsCrOS, 528 kOsWin | kOsLinux | kOsCrOS,
537 SINGLE_VALUE_TYPE(ash::switches::kAuraGoogleDialogFrames) 529 SINGLE_VALUE_TYPE(ash::switches::kAuraGoogleDialogFrames)
538 }, 530 },
539 #endif 531 #endif
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 } 1260 }
1269 1261
1270 const Experiment* GetExperiments(size_t* count) { 1262 const Experiment* GetExperiments(size_t* count) {
1271 *count = num_experiments; 1263 *count = num_experiments;
1272 return experiments; 1264 return experiments;
1273 } 1265 }
1274 1266
1275 } // namespace testing 1267 } // namespace testing
1276 1268
1277 } // namespace about_flags 1269 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698