| 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/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 // Prevents hosted apps from being opened in windows on Mac. | 1149 // Prevents hosted apps from being opened in windows on Mac. |
| 1150 const char kDisableHostedAppsInWindows[] = "disable-hosted-apps-in-windows"; | 1150 const char kDisableHostedAppsInWindows[] = "disable-hosted-apps-in-windows"; |
| 1151 | 1151 |
| 1152 // Disables use of toolkit-views based native app windows. | 1152 // Disables use of toolkit-views based native app windows. |
| 1153 const char kDisableMacViewsNativeAppWindows[] = | 1153 const char kDisableMacViewsNativeAppWindows[] = |
| 1154 "disable-mac-views-native-app-windows"; | 1154 "disable-mac-views-native-app-windows"; |
| 1155 | 1155 |
| 1156 // Disables Translate experimental new UX which replaces the infobar. | 1156 // Disables Translate experimental new UX which replaces the infobar. |
| 1157 const char kDisableTranslateNewUX[] = "disable-translate-new-ux"; | 1157 const char kDisableTranslateNewUX[] = "disable-translate-new-ux"; |
| 1158 | 1158 |
| 1159 // Enable user metrics from within the installer. |
| 1160 const char kEnableUserMetrics[] = "enable-user-metrics"; |
| 1161 |
| 1159 // Enable the toolkit-views App Info dialog for Mac. This is accessible from | 1162 // Enable the toolkit-views App Info dialog for Mac. This is accessible from |
| 1160 // chrome://apps and chrome://extensions and is already enabled on non-mac. | 1163 // chrome://apps and chrome://extensions and is already enabled on non-mac. |
| 1161 const char kEnableAppInfoDialogMac[] = "enable-app-info-dialog-mac"; | 1164 const char kEnableAppInfoDialogMac[] = "enable-app-info-dialog-mac"; |
| 1162 | 1165 |
| 1163 // Enables custom Cmd+` window cycling for platform apps and hosted apps. | 1166 // Enables custom Cmd+` window cycling for platform apps and hosted apps. |
| 1164 const char kEnableAppWindowCycling[] = "enable-app-window-cycling"; | 1167 const char kEnableAppWindowCycling[] = "enable-app-window-cycling"; |
| 1165 | 1168 |
| 1166 // Enables tab detaching in fullscreen mode on Mac. | 1169 // Enables tab detaching in fullscreen mode on Mac. |
| 1167 const char kEnableFullscreenTabDetaching[] = "enable-fullscreen-tab-detaching"; | 1170 const char kEnableFullscreenTabDetaching[] = "enable-fullscreen-tab-detaching"; |
| 1168 | 1171 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1191 | 1194 |
| 1192 // A process type (switches::kProcessType) that relaunches the browser. See | 1195 // A process type (switches::kProcessType) that relaunches the browser. See |
| 1193 // chrome/browser/mac/relauncher.h. | 1196 // chrome/browser/mac/relauncher.h. |
| 1194 const char kRelauncherProcess[] = "relauncher"; | 1197 const char kRelauncherProcess[] = "relauncher"; |
| 1195 | 1198 |
| 1196 // When switches::kProcessType is switches::kRelauncherProcess, if this switch | 1199 // When switches::kProcessType is switches::kRelauncherProcess, if this switch |
| 1197 // is also present, the relauncher process will unmount and eject a mounted disk | 1200 // is also present, the relauncher process will unmount and eject a mounted disk |
| 1198 // image and move its disk image file to the trash. The argument's value must | 1201 // image and move its disk image file to the trash. The argument's value must |
| 1199 // be a BSD device name of the form "diskN" or "diskNsM". | 1202 // be a BSD device name of the form "diskN" or "diskNsM". |
| 1200 const char kRelauncherProcessDMGDevice[] = "dmg-device"; | 1203 const char kRelauncherProcessDMGDevice[] = "dmg-device"; |
| 1204 |
| 1205 // Indicates whether Chrome should be set as the default browser during |
| 1206 // installation. |
| 1207 const char kSetDefaultBrowser[] = "set-default"; |
| 1201 #endif // defined(OS_MACOSX) | 1208 #endif // defined(OS_MACOSX) |
| 1202 | 1209 |
| 1203 #if defined(OS_WIN) | 1210 #if defined(OS_WIN) |
| 1204 // Disables per monitor DPI for supported Windows versions. | 1211 // Disables per monitor DPI for supported Windows versions. |
| 1205 // This flag overrides kEnablePerMonitorDpi. | 1212 // This flag overrides kEnablePerMonitorDpi. |
| 1206 const char kDisablePerMonitorDpi[] = "disable-per-monitor-dpi"; | 1213 const char kDisablePerMonitorDpi[] = "disable-per-monitor-dpi"; |
| 1207 | 1214 |
| 1208 // Fallback to XPS. By default connector uses CDD. | 1215 // Fallback to XPS. By default connector uses CDD. |
| 1209 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps"; | 1216 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps"; |
| 1210 | 1217 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 | 1326 |
| 1320 // ----------------------------------------------------------------------------- | 1327 // ----------------------------------------------------------------------------- |
| 1321 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1328 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1322 // | 1329 // |
| 1323 // You were going to just dump your switches here, weren't you? Instead, please | 1330 // You were going to just dump your switches here, weren't you? Instead, please |
| 1324 // put them in alphabetical order above, or in order inside the appropriate | 1331 // put them in alphabetical order above, or in order inside the appropriate |
| 1325 // ifdef at the bottom. The order should match the header. | 1332 // ifdef at the bottom. The order should match the header. |
| 1326 // ----------------------------------------------------------------------------- | 1333 // ----------------------------------------------------------------------------- |
| 1327 | 1334 |
| 1328 } // namespace switches | 1335 } // namespace switches |
| OLD | NEW |