OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
422 SINGLE_VALUE_TYPE(switches::kAuraWindows) | 422 SINGLE_VALUE_TYPE(switches::kAuraWindows) |
423 }, | 423 }, |
424 #endif | 424 #endif |
425 { | 425 { |
426 "enable-gamepad", | 426 "enable-gamepad", |
427 IDS_FLAGS_ENABLE_GAMEPAD_NAME, | 427 IDS_FLAGS_ENABLE_GAMEPAD_NAME, |
428 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, | 428 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, |
429 kOsWin, | 429 kOsWin, |
430 SINGLE_VALUE_TYPE(switches::kEnableGamepad) | 430 SINGLE_VALUE_TYPE(switches::kEnableGamepad) |
431 }, | 431 }, |
432 { | |
433 "per-tile-drawing", | |
jamesr
2011/12/08 02:31:14
as I mentioned on the WebKit patch, I believe this
| |
434 IDS_FLAGS_PER_TILE_DRAWING_NAME, | |
435 IDS_FLAGS_PER_TILE_DRAWING_DESCRIPTION, | |
436 #if defined(USE_SKIA) | |
437 kOsAll, | |
438 #else | |
439 0, | |
440 #endif | |
441 SINGLE_VALUE_TYPE(switches::kEnablePerTileDrawing) | |
442 }, | |
432 }; | 443 }; |
433 | 444 |
434 const Experiment* experiments = kExperiments; | 445 const Experiment* experiments = kExperiments; |
435 size_t num_experiments = arraysize(kExperiments); | 446 size_t num_experiments = arraysize(kExperiments); |
436 | 447 |
437 // Stores and encapsulates the little state that about:flags has. | 448 // Stores and encapsulates the little state that about:flags has. |
438 class FlagsState { | 449 class FlagsState { |
439 public: | 450 public: |
440 FlagsState() : needs_restart_(false) {} | 451 FlagsState() : needs_restart_(false) {} |
441 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 452 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
851 } | 862 } |
852 | 863 |
853 const Experiment* GetExperiments(size_t* count) { | 864 const Experiment* GetExperiments(size_t* count) { |
854 *count = num_experiments; | 865 *count = num_experiments; |
855 return experiments; | 866 return experiments; |
856 } | 867 } |
857 | 868 |
858 } // namespace testing | 869 } // namespace testing |
859 | 870 |
860 } // namespace about_flags | 871 } // namespace about_flags |
OLD | NEW |