OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 #include "grit/chromium_strings.h" | 25 #include "grit/chromium_strings.h" |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 #include "grit/google_chrome_strings.h" | 27 #include "grit/google_chrome_strings.h" |
28 #include "media/base/media_switches.h" | 28 #include "media/base/media_switches.h" |
29 #include "ui/app_list/app_list_switches.h" | 29 #include "ui/app_list/app_list_switches.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/ui_base_switches.h" | 31 #include "ui/base/ui_base_switches.h" |
32 #include "ui/gfx/switches.h" | 32 #include "ui/gfx/switches.h" |
33 #include "ui/gl/gl_switches.h" | 33 #include "ui/gl/gl_switches.h" |
34 #include "ui/keyboard/keyboard_switches.h" | 34 #include "ui/keyboard/keyboard_switches.h" |
| 35 #include "ui/surface/surface_switches.h" |
| 36 |
| 37 #if defined(ENABLE_MESSAGE_CENTER) |
35 #include "ui/message_center/message_center_switches.h" | 38 #include "ui/message_center/message_center_switches.h" |
36 #include "ui/surface/surface_switches.h" | 39 #endif |
37 | 40 |
38 #if defined(USE_ASH) | 41 #if defined(USE_ASH) |
39 #include "ash/ash_switches.h" | 42 #include "ash/ash_switches.h" |
40 #endif | 43 #endif |
41 | 44 |
42 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
43 #include "chromeos/chromeos_switches.h" | 46 #include "chromeos/chromeos_switches.h" |
44 #endif | 47 #endif |
45 | 48 |
46 using content::UserMetricsAction; | 49 using content::UserMetricsAction; |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 switches::kDisableTouchDragDrop) | 1290 switches::kDisableTouchDragDrop) |
1288 }, | 1291 }, |
1289 { | 1292 { |
1290 "enable-touch-editing", | 1293 "enable-touch-editing", |
1291 IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME, | 1294 IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME, |
1292 IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION, | 1295 IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION, |
1293 kOsCrOS, | 1296 kOsCrOS, |
1294 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing, | 1297 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing, |
1295 switches::kDisableTouchEditing) | 1298 switches::kDisableTouchEditing) |
1296 }, | 1299 }, |
| 1300 #if defined(ENABLE_MESSAGE_CENTER) |
1297 { | 1301 { |
1298 "enable-rich-notifications", | 1302 "enable-rich-notifications", |
1299 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_NAME, | 1303 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_NAME, |
1300 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_DESCRIPTION, | 1304 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_DESCRIPTION, |
1301 kOsWin | kOsCrOS | kOsMac, | 1305 kOsWin | kOsCrOS | kOsMac, |
1302 ENABLE_DISABLE_VALUE_TYPE( | 1306 ENABLE_DISABLE_VALUE_TYPE( |
1303 message_center::switches::kEnableRichNotifications, | 1307 message_center::switches::kEnableRichNotifications, |
1304 message_center::switches::kDisableRichNotifications) | 1308 message_center::switches::kDisableRichNotifications) |
1305 }, | 1309 }, |
| 1310 #endif |
1306 { | 1311 { |
1307 "enable-sync-synced-notifications", | 1312 "enable-sync-synced-notifications", |
1308 IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_NAME, | 1313 IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_NAME, |
1309 IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_DESCRIPTION, | 1314 IDS_FLAGS_ENABLE_SYNCED_NOTIFICATIONS_DESCRIPTION, |
1310 kOsWin | kOsCrOS, | 1315 kOsWin | kOsCrOS, |
1311 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSyncSyncedNotifications, | 1316 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSyncSyncedNotifications, |
1312 switches::kDisableSyncSyncedNotifications) | 1317 switches::kDisableSyncSyncedNotifications) |
1313 }, | 1318 }, |
1314 { | 1319 { |
1315 "disable-full-history-sync", | 1320 "disable-full-history-sync", |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1955 } | 1960 } |
1956 | 1961 |
1957 const Experiment* GetExperiments(size_t* count) { | 1962 const Experiment* GetExperiments(size_t* count) { |
1958 *count = num_experiments; | 1963 *count = num_experiments; |
1959 return experiments; | 1964 return experiments; |
1960 } | 1965 } |
1961 | 1966 |
1962 } // namespace testing | 1967 } // namespace testing |
1963 | 1968 |
1964 } // namespace about_flags | 1969 } // namespace about_flags |
OLD | NEW |