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

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

Issue 8895003: Aura: Add --aura-laptop-mode to fill the workspace with a single window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 1 Created 9 years 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
OLDNEW
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 SINGLE_VALUE_TYPE(switches::kAuraTranslucentFrames) 436 SINGLE_VALUE_TYPE(switches::kAuraTranslucentFrames)
437 }, 437 },
438 #endif // defined(USE_AURA) 438 #endif // defined(USE_AURA)
439 { 439 {
440 "enable-gamepad", 440 "enable-gamepad",
441 IDS_FLAGS_ENABLE_GAMEPAD_NAME, 441 IDS_FLAGS_ENABLE_GAMEPAD_NAME,
442 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, 442 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION,
443 kOsMac | kOsWin, 443 kOsMac | kOsWin,
444 SINGLE_VALUE_TYPE(switches::kEnableGamepad) 444 SINGLE_VALUE_TYPE(switches::kEnableGamepad)
445 }, 445 },
446 #if defined(USE_AURA)
447 // TODO(jamescook): Enable this for all ChromeOS builds when we're sure
448 // Aura laptop mode performance and feature set match traditional non-Aura
449 // builds.
450 {
451 "aura-laptop-mode",
452 IDS_FLAGS_AURA_LAPTOP_MODE_NAME,
453 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION,
454 kOsWin | kOsLinux | kOsCrOS,
455 SINGLE_VALUE_TYPE(switches::kAuraLaptopMode)
456 },
457 #endif
446 }; 458 };
447 459
448 const Experiment* experiments = kExperiments; 460 const Experiment* experiments = kExperiments;
449 size_t num_experiments = arraysize(kExperiments); 461 size_t num_experiments = arraysize(kExperiments);
450 462
451 // Stores and encapsulates the little state that about:flags has. 463 // Stores and encapsulates the little state that about:flags has.
452 class FlagsState { 464 class FlagsState {
453 public: 465 public:
454 FlagsState() : needs_restart_(false) {} 466 FlagsState() : needs_restart_(false) {}
455 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 467 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 } 877 }
866 878
867 const Experiment* GetExperiments(size_t* count) { 879 const Experiment* GetExperiments(size_t* count) {
868 *count = num_experiments; 880 *count = num_experiments;
869 return experiments; 881 return experiments;
870 } 882 }
871 883
872 } // namespace testing 884 } // namespace testing
873 885
874 } // namespace about_flags 886 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698