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

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: rebase, fix unit test build 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/frame/browser_frame.h » ('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) 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 SINGLE_VALUE_TYPE(switches::kAuraTranslucentFrames) 438 SINGLE_VALUE_TYPE(switches::kAuraTranslucentFrames)
439 }, 439 },
440 #endif // defined(USE_AURA) 440 #endif // defined(USE_AURA)
441 { 441 {
442 "enable-gamepad", 442 "enable-gamepad",
443 IDS_FLAGS_ENABLE_GAMEPAD_NAME, 443 IDS_FLAGS_ENABLE_GAMEPAD_NAME,
444 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, 444 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION,
445 kOsMac | kOsWin, 445 kOsMac | kOsWin,
446 SINGLE_VALUE_TYPE(switches::kEnableGamepad) 446 SINGLE_VALUE_TYPE(switches::kEnableGamepad)
447 }, 447 },
448 #if defined(USE_AURA)
449 // TODO(jamescook): Enable this for all ChromeOS builds when we're sure
450 // Aura laptop mode performance and feature set match traditional non-Aura
451 // builds.
452 {
453 "aura-laptop-mode",
454 IDS_FLAGS_AURA_LAPTOP_MODE_NAME,
455 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION,
456 kOsWin | kOsLinux | kOsCrOS,
457 SINGLE_VALUE_TYPE(switches::kAuraLaptopMode)
458 },
459 #endif
448 }; 460 };
449 461
450 const Experiment* experiments = kExperiments; 462 const Experiment* experiments = kExperiments;
451 size_t num_experiments = arraysize(kExperiments); 463 size_t num_experiments = arraysize(kExperiments);
452 464
453 // Stores and encapsulates the little state that about:flags has. 465 // Stores and encapsulates the little state that about:flags has.
454 class FlagsState { 466 class FlagsState {
455 public: 467 public:
456 FlagsState() : needs_restart_(false) {} 468 FlagsState() : needs_restart_(false) {}
457 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 469 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 } 879 }
868 880
869 const Experiment* GetExperiments(size_t* count) { 881 const Experiment* GetExperiments(size_t* count) {
870 *count = num_experiments; 882 *count = num_experiments;
871 return experiments; 883 return experiments;
872 } 884 }
873 885
874 } // namespace testing 886 } // namespace testing
875 887
876 } // namespace about_flags 888 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/frame/browser_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698