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

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: maximize ALL the windows 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 kOsMac | kOsWin, 429 kOsMac | kOsWin,
430 SINGLE_VALUE_TYPE(switches::kEnableGamepad) 430 SINGLE_VALUE_TYPE(switches::kEnableGamepad)
431 }, 431 },
432 #if defined(USE_AURA)
433 // TODO(jamescook): Enable this for all ChromeOS builds when we're sure
434 // Aura laptop mode performance and feature set match traditional non-Aura
435 // builds.
436 {
437 "aura-laptop-mode",
438 IDS_FLAGS_AURA_LAPTOP_MODE_NAME,
439 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION,
440 kOsWin | kOsLinux | kOsCrOS,
441 SINGLE_VALUE_TYPE(switches::kAuraLaptopMode)
442 },
443 #endif
432 }; 444 };
433 445
434 const Experiment* experiments = kExperiments; 446 const Experiment* experiments = kExperiments;
435 size_t num_experiments = arraysize(kExperiments); 447 size_t num_experiments = arraysize(kExperiments);
436 448
437 // Stores and encapsulates the little state that about:flags has. 449 // Stores and encapsulates the little state that about:flags has.
438 class FlagsState { 450 class FlagsState {
439 public: 451 public:
440 FlagsState() : needs_restart_(false) {} 452 FlagsState() : needs_restart_(false) {}
441 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 453 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 } 863 }
852 864
853 const Experiment* GetExperiments(size_t* count) { 865 const Experiment* GetExperiments(size_t* count) {
854 *count = num_experiments; 866 *count = num_experiments;
855 return experiments; 867 return experiments;
856 } 868 }
857 869
858 } // namespace testing 870 } // namespace testing
859 871
860 } // namespace about_flags 872 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698