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

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

Issue 9701002: Aura/ash split: Split the extra parts into ash and aura parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk to try again Created 8 years, 9 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 | « build/all.gyp ('k') | chrome/browser/chrome_browser_main_extra_parts_ash.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) 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>
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_ASH)
28 #include "ash/ash_switches.h"
29 #endif
30
27 #if defined(USE_AURA) 31 #if defined(USE_AURA)
28 #include "ash/ash_switches.h"
29 #include "ui/aura/aura_switches.h" 32 #include "ui/aura/aura_switches.h"
30 #endif 33 #endif
31 34
32 using content::UserMetricsAction; 35 using content::UserMetricsAction;
33 36
34 namespace about_flags { 37 namespace about_flags {
35 38
36 // Macros to simplify specifying the type. 39 // Macros to simplify specifying the type.
37 #define SINGLE_VALUE_TYPE_AND_VALUE(command_line_switch, switch_value) \ 40 #define SINGLE_VALUE_TYPE_AND_VALUE(command_line_switch, switch_value) \
38 Experiment::SINGLE_VALUE, command_line_switch, switch_value, NULL, 0 41 Experiment::SINGLE_VALUE, command_line_switch, switch_value, NULL, 0
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 kOsAll, 441 kOsAll,
439 SINGLE_VALUE_TYPE(switches::kEnableMediaSource) 442 SINGLE_VALUE_TYPE(switches::kEnableMediaSource)
440 }, 443 },
441 { 444 {
442 "enable-pointer-lock", 445 "enable-pointer-lock",
443 IDS_FLAGS_ENABLE_POINTER_LOCK_NAME, 446 IDS_FLAGS_ENABLE_POINTER_LOCK_NAME,
444 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION, 447 IDS_FLAGS_ENABLE_POINTER_LOCK_DESCRIPTION,
445 kOsAll, 448 kOsAll,
446 SINGLE_VALUE_TYPE(switches::kEnablePointerLock) 449 SINGLE_VALUE_TYPE(switches::kEnablePointerLock)
447 }, 450 },
448 #if defined(USE_AURA) 451 #if defined(USE_ASH)
449 { 452 {
450 "aura-google-dialog-frames", 453 "aura-google-dialog-frames",
451 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_NAME, 454 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_NAME,
452 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_DESCRIPTION, 455 IDS_FLAGS_AURA_GOOGLE_DIALOG_FRAMES_DESCRIPTION,
453 kOsWin | kOsLinux | kOsCrOS, 456 kOsWin | kOsLinux | kOsCrOS,
454 SINGLE_VALUE_TYPE(ash::switches::kAuraGoogleDialogFrames) 457 SINGLE_VALUE_TYPE(ash::switches::kAuraGoogleDialogFrames)
455 }, 458 },
459 #endif
460 #if defined(USE_AURA)
456 { 461 {
457 "aura-disable-hold-mouse-moves", 462 "aura-disable-hold-mouse-moves",
458 IDS_FLAGS_AURA_DISABLE_HOLD_MOUSE_MOVES_NAME, 463 IDS_FLAGS_AURA_DISABLE_HOLD_MOUSE_MOVES_NAME,
459 IDS_FLAGS_AURA_DISABLE_HOLD_MOUSE_MOVES_DESCRIPTION, 464 IDS_FLAGS_AURA_DISABLE_HOLD_MOUSE_MOVES_DESCRIPTION,
460 kOsWin | kOsLinux | kOsCrOS, 465 kOsWin | kOsLinux | kOsCrOS,
461 SINGLE_VALUE_TYPE(switches::kAuraDisableHoldMouseMoves) 466 SINGLE_VALUE_TYPE(switches::kAuraDisableHoldMouseMoves)
462 }, 467 },
463 #endif // defined(USE_AURA) 468 #endif // defined(USE_AURA)
464 { 469 {
465 "enable-gamepad", 470 "enable-gamepad",
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 kOsAll, 572 kOsAll,
568 SINGLE_VALUE_TYPE(switches::kWebUITaskManager) 573 SINGLE_VALUE_TYPE(switches::kWebUITaskManager)
569 }, 574 },
570 { 575 {
571 "disable-ntp-other-sessions-menu", 576 "disable-ntp-other-sessions-menu",
572 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_NAME, 577 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_NAME,
573 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_DESCRIPTION, 578 IDS_FLAGS_NTP_OTHER_SESSIONS_MENU_DESCRIPTION,
574 kOsAll, 579 kOsAll,
575 SINGLE_VALUE_TYPE(switches::kDisableNTPOtherSessionsMenu) 580 SINGLE_VALUE_TYPE(switches::kDisableNTPOtherSessionsMenu)
576 }, 581 },
577 #if defined(USE_AURA) 582 #if defined(USE_ASH)
578 { 583 {
579 "enable-ash-uber-tray", 584 "enable-ash-uber-tray",
580 IDS_FLAGS_ENABLE_ASH_UBER_TRAY_NAME, 585 IDS_FLAGS_ENABLE_ASH_UBER_TRAY_NAME,
581 IDS_FLAGS_ENABLE_ASH_UBER_TRAY_DESCRIPTION, 586 IDS_FLAGS_ENABLE_ASH_UBER_TRAY_DESCRIPTION,
582 kOsAll, 587 kOsAll,
583 SINGLE_VALUE_TYPE(ash::switches::kAshUberTray), 588 SINGLE_VALUE_TYPE(ash::switches::kAshUberTray),
584 }, 589 },
585 { 590 {
586 "enable-ash-oak", 591 "enable-ash-oak",
587 IDS_FLAGS_ENABLE_ASH_OAK_NAME, 592 IDS_FLAGS_ENABLE_ASH_OAK_NAME,
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1037 }
1033 1038
1034 const Experiment* GetExperiments(size_t* count) { 1039 const Experiment* GetExperiments(size_t* count) {
1035 *count = num_experiments; 1040 *count = num_experiments;
1036 return experiments; 1041 return experiments;
1037 } 1042 }
1038 1043
1039 } // namespace testing 1044 } // namespace testing
1040 1045
1041 } // namespace about_flags 1046 } // namespace about_flags
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | chrome/browser/chrome_browser_main_extra_parts_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698