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