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

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

Issue 8968022: Shell related switches -> aura shell switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 | « no previous file | chrome/browser/automation/testing_automation_provider_aura.cc » ('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>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/prefs/scoped_user_pref_update.h" 18 #include "chrome/browser/prefs/scoped_user_pref_update.h"
19 #include "chrome/common/chrome_content_client.h" 19 #include "chrome/common/chrome_content_client.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "content/public/browser/user_metrics.h" 22 #include "content/public/browser/user_metrics.h"
23 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 #include "ui/gfx/gl/gl_switches.h" 25 #include "ui/gfx/gl/gl_switches.h"
26 26
27 #if defined(USE_AURA) 27 #if defined(USE_AURA)
28 #include "ui/aura/aura_switches.h" 28 #include "ui/aura_shell/aura_shell_switches.h"
29 #endif 29 #endif
30 30
31 using content::UserMetricsAction; 31 using content::UserMetricsAction;
32 32
33 namespace about_flags { 33 namespace about_flags {
34 34
35 // Macros to simplify specifying the type. 35 // Macros to simplify specifying the type.
36 #define SINGLE_VALUE_TYPE_AND_VALUE(command_line_switch, switch_value) \ 36 #define SINGLE_VALUE_TYPE_AND_VALUE(command_line_switch, switch_value) \
37 Experiment::SINGLE_VALUE, command_line_switch, switch_value, NULL, 0 37 Experiment::SINGLE_VALUE, command_line_switch, switch_value, NULL, 0
38 #define SINGLE_VALUE_TYPE(command_line_switch) \ 38 #define SINGLE_VALUE_TYPE(command_line_switch) \
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION, 428 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION,
429 kOsAll, 429 kOsAll,
430 SINGLE_VALUE_TYPE(switches::kEnablePointerLock) 430 SINGLE_VALUE_TYPE(switches::kEnablePointerLock)
431 }, 431 },
432 #if defined(USE_AURA) 432 #if defined(USE_AURA)
433 { 433 {
434 "aura-workspace-manager", 434 "aura-workspace-manager",
435 IDS_FLAGS_AURA_WORKSPACE_MANAGER_NAME, 435 IDS_FLAGS_AURA_WORKSPACE_MANAGER_NAME,
436 IDS_FLAGS_AURA_WORKSPACE_MANAGER_DESCRIPTION, 436 IDS_FLAGS_AURA_WORKSPACE_MANAGER_DESCRIPTION,
437 kOsWin | kOsLinux | kOsCrOS, 437 kOsWin | kOsLinux | kOsCrOS,
438 SINGLE_VALUE_TYPE(switches::kAuraWorkspaceManager) 438 SINGLE_VALUE_TYPE(aura_shell::switches::kAuraWorkspaceManager)
439 }, 439 },
440 { 440 {
441 "aura-translucent-frames", 441 "aura-translucent-frames",
442 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_NAME, 442 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_NAME,
443 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_DESCRIPTION, 443 IDS_FLAGS_AURA_TRANSLUCENT_FRAMES_DESCRIPTION,
444 kOsWin | kOsLinux | kOsCrOS, 444 kOsWin | kOsLinux | kOsCrOS,
445 SINGLE_VALUE_TYPE(switches::kAuraTranslucentFrames) 445 SINGLE_VALUE_TYPE(aura_shell::switches::kAuraTranslucentFrames)
446 }, 446 },
447 #endif // defined(USE_AURA) 447 #endif // defined(USE_AURA)
448 { 448 {
449 "enable-gamepad", 449 "enable-gamepad",
450 IDS_FLAGS_ENABLE_GAMEPAD_NAME, 450 IDS_FLAGS_ENABLE_GAMEPAD_NAME,
451 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION, 451 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION,
452 kOsMac | kOsWin, 452 kOsMac | kOsWin,
453 SINGLE_VALUE_TYPE(switches::kEnableGamepad) 453 SINGLE_VALUE_TYPE(switches::kEnableGamepad)
454 }, 454 },
455 #if defined(USE_AURA) 455 #if defined(USE_AURA)
456 // TODO(jamescook): Enable this for all ChromeOS builds when we're sure 456 // TODO(jamescook): Enable this for all ChromeOS builds when we're sure
457 // Aura laptop mode performance and feature set match traditional non-Aura 457 // Aura laptop mode performance and feature set match traditional non-Aura
458 // builds. 458 // builds.
459 { 459 {
460 "aura-laptop-mode", 460 "aura-laptop-mode",
461 IDS_FLAGS_AURA_LAPTOP_MODE_NAME, 461 IDS_FLAGS_AURA_LAPTOP_MODE_NAME,
462 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION, 462 IDS_FLAGS_AURA_LAPTOP_MODE_DESCRIPTION,
463 kOsWin | kOsLinux | kOsCrOS, 463 kOsWin | kOsLinux | kOsCrOS,
464 SINGLE_VALUE_TYPE(switches::kAuraLaptopMode) 464 SINGLE_VALUE_TYPE(aura_shell::switches::kAuraLaptopMode)
465 }, 465 },
466 #endif 466 #endif
467 { 467 {
468 "per-tile-painting", 468 "per-tile-painting",
469 IDS_FLAGS_PER_TILE_PAINTING_NAME, 469 IDS_FLAGS_PER_TILE_PAINTING_NAME,
470 IDS_FLAGS_PER_TILE_PAINTING_DESCRIPTION, 470 IDS_FLAGS_PER_TILE_PAINTING_DESCRIPTION,
471 #if defined(USE_SKIA) 471 #if defined(USE_SKIA)
472 kOsAll, 472 kOsAll,
473 #else 473 #else
474 0, 474 0,
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 } 897 }
898 898
899 const Experiment* GetExperiments(size_t* count) { 899 const Experiment* GetExperiments(size_t* count) {
900 *count = num_experiments; 900 *count = num_experiments;
901 return experiments; 901 return experiments;
902 } 902 }
903 903
904 } // namespace testing 904 } // namespace testing
905 905
906 } // namespace about_flags 906 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698