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

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

Issue 9316005: Aura: Rework window mode flags to compact/overlapping/managed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with review feedback Created 8 years, 10 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | 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) 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 switches::kOmniboxAggressiveHistoryURL, 81 switches::kOmniboxAggressiveHistoryURL,
82 switches::kOmniboxAggressiveHistoryURLEnabled }, 82 switches::kOmniboxAggressiveHistoryURLEnabled },
83 { IDS_FLAGS_OMNIBOX_AGGRESSIVE_HISTORY_URL_SCORING_DISABLED, 83 { IDS_FLAGS_OMNIBOX_AGGRESSIVE_HISTORY_URL_SCORING_DISABLED,
84 switches::kOmniboxAggressiveHistoryURL, 84 switches::kOmniboxAggressiveHistoryURL,
85 switches::kOmniboxAggressiveHistoryURLDisabled } 85 switches::kOmniboxAggressiveHistoryURLDisabled }
86 }; 86 };
87 87
88 #if defined(USE_AURA) 88 #if defined(USE_AURA)
89 const Experiment::Choice kAuraWindowModeChoices[] = { 89 const Experiment::Choice kAuraWindowModeChoices[] = {
90 { IDS_FLAGS_AURA_WINDOW_MODE_AUTOMATIC, "", "" }, 90 { IDS_FLAGS_AURA_WINDOW_MODE_AUTOMATIC, "", "" },
91 { IDS_FLAGS_AURA_WINDOW_MODE_NORMAL,
92 ash::switches::kAuraWindowMode, ash::switches::kAuraWindowModeNormal },
93 { IDS_FLAGS_AURA_WINDOW_MODE_COMPACT, 91 { IDS_FLAGS_AURA_WINDOW_MODE_COMPACT,
94 ash::switches::kAuraWindowMode, ash::switches::kAuraWindowModeCompact } 92 ash::switches::kAuraWindowMode,
93 ash::switches::kAuraWindowModeCompact },
94 { IDS_FLAGS_AURA_WINDOW_MODE_MANAGED,
95 ash::switches::kAuraWindowMode,
96 ash::switches::kAuraWindowModeManaged },
97 { IDS_FLAGS_AURA_WINDOW_MODE_OVERLAPPING,
98 ash::switches::kAuraWindowMode,
99 ash::switches::kAuraWindowModeOverlapping },
95 }; 100 };
96 #endif 101 #endif
97 102
98 // RECORDING USER METRICS FOR FLAGS: 103 // RECORDING USER METRICS FOR FLAGS:
99 // ----------------------------------------------------------------------------- 104 // -----------------------------------------------------------------------------
100 // The first line of the experiment is the internal name. If you'd like to 105 // The first line of the experiment is the internal name. If you'd like to
101 // gather statistics about the usage of your flag, you should append a marker 106 // gather statistics about the usage of your flag, you should append a marker
102 // comment to the end of the feature name, like so: 107 // comment to the end of the feature name, like so:
103 // "my-special-feature", // FLAGS:RECORD_UMA 108 // "my-special-feature", // FLAGS:RECORD_UMA
104 // 109 //
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 }, 463 },
459 { 464 {
460 "enable-pointer-lock", 465 "enable-pointer-lock",
461 IDS_FLAGS_ENABLE_POINTER_LOCK_NAME, 466 IDS_FLAGS_ENABLE_POINTER_LOCK_NAME,
462 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION, 467 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION,
463 kOsAll, 468 kOsAll,
464 SINGLE_VALUE_TYPE(switches::kEnablePointerLock) 469 SINGLE_VALUE_TYPE(switches::kEnablePointerLock)
465 }, 470 },
466 #if defined(USE_AURA) 471 #if defined(USE_AURA)
467 { 472 {
468 "aura-workspace-manager",
469 IDS_FLAGS_AURA_WORKSPACE_MANAGER_NAME,
470 IDS_FLAGS_AURA_WORKSPACE_MANAGER_DESCRIPTION,
471 kOsWin | kOsLinux | kOsCrOS,
472 SINGLE_VALUE_TYPE(ash::switches::kAuraWorkspaceManager)
473 },
474 {
475 "aura-translucent-frames", 473 "aura-translucent-frames",
476 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_NAME, 474 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_NAME,
477 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_DESCRIPTION, 475 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_DESCRIPTION,
478 kOsWin | kOsLinux | kOsCrOS, 476 kOsWin | kOsLinux | kOsCrOS,
479 SINGLE_VALUE_TYPE(ash::switches::kAuraTranslucentFrames) 477 SINGLE_VALUE_TYPE(ash::switches::kAuraTranslucentFrames)
480 }, 478 },
481 { 479 {
482 "aura-google-dialog-frames", 480 "aura-google-dialog-frames",
483 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_NAME, 481 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_NAME,
484 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_DESCRIPTION, 482 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_DESCRIPTION,
485 kOsWin | kOsLinux | kOsCrOS, 483 kOsWin | kOsLinux | kOsCrOS,
486 SINGLE_VALUE_TYPE(ash::switches::kAuraGoogleDialogFrames) 484 SINGLE_VALUE_TYPE(ash::switches::kAuraGoogleDialogFrames)
487 }, 485 },
488 // TODO(jamescook): Enable this for all ChromeOS builds when we're sure
489 // Aura laptop mode performance and feature set match traditional non-Aura
490 // builds.
491 { 486 {
492 "aura-window-mode", 487 "aura-window-mode",
493 IDS_FLAGS_AURA_WINDOW_MODE_NAME, 488 IDS_FLAGS_AURA_WINDOW_MODE_NAME,
494 IDS_FLAGS_AURA_WINDOW_MODE_DESCRIPTION, 489 IDS_FLAGS_AURA_WINDOW_MODE_DESCRIPTION,
495 kOsWin | kOsLinux | kOsCrOS, 490 kOsWin | kOsLinux | kOsCrOS,
496 MULTI_VALUE_TYPE(kAuraWindowModeChoices) 491 MULTI_VALUE_TYPE(kAuraWindowModeChoices)
497 }, 492 },
498 #endif // defined(USE_AURA) 493 #endif // defined(USE_AURA)
499 { 494 {
500 "enable-gamepad", 495 "enable-gamepad",
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 } 1000 }
1006 1001
1007 const Experiment* GetExperiments(size_t* count) { 1002 const Experiment* GetExperiments(size_t* count) {
1008 *count = num_experiments; 1003 *count = num_experiments;
1009 return experiments; 1004 return experiments;
1010 } 1005 }
1011 1006
1012 } // namespace testing 1007 } // namespace testing
1013 1008
1014 } // namespace about_flags 1009 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698