| 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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 #if defined(ENABLE_WAYLAND_SERVER) | 1280 #if defined(ENABLE_WAYLAND_SERVER) |
| 1281 // Enables Wayland display server support. | 1281 // Enables Wayland display server support. |
| 1282 const char kEnableWaylandServer[] = "enable-wayland-server"; | 1282 const char kEnableWaylandServer[] = "enable-wayland-server"; |
| 1283 #endif | 1283 #endif |
| 1284 | 1284 |
| 1285 #if defined(OS_WIN) || defined(OS_LINUX) | 1285 #if defined(OS_WIN) || defined(OS_LINUX) |
| 1286 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; | 1286 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; |
| 1287 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; | 1287 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; |
| 1288 #endif | 1288 #endif |
| 1289 | 1289 |
| 1290 #if defined(OS_LINUX) |
| 1291 // Use X's DPI to determine the device scale factor instead of |
| 1292 // gtk's font setting. |
| 1293 const char kEnableXDPIForDSF[] = "enable-xdpi-for-dsf"; |
| 1294 #endif |
| 1295 |
| 1290 bool AboutInSettingsEnabled() { | 1296 bool AboutInSettingsEnabled() { |
| 1291 return SettingsWindowEnabled() && | 1297 return SettingsWindowEnabled() && |
| 1292 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1298 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1293 ::switches::kDisableAboutInSettings); | 1299 ::switches::kDisableAboutInSettings); |
| 1294 } | 1300 } |
| 1295 | 1301 |
| 1296 bool ExtensionsDisabled(const base::CommandLine& command_line) { | 1302 bool ExtensionsDisabled(const base::CommandLine& command_line) { |
| 1297 return command_line.HasSwitch(switches::kDisableExtensions) || | 1303 return command_line.HasSwitch(switches::kDisableExtensions) || |
| 1298 command_line.HasSwitch(switches::kDisableExtensionsExcept); | 1304 command_line.HasSwitch(switches::kDisableExtensionsExcept); |
| 1299 } | 1305 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1327 | 1333 |
| 1328 // ----------------------------------------------------------------------------- | 1334 // ----------------------------------------------------------------------------- |
| 1329 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1335 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
| 1330 // | 1336 // |
| 1331 // You were going to just dump your switches here, weren't you? Instead, please | 1337 // You were going to just dump your switches here, weren't you? Instead, please |
| 1332 // put them in alphabetical order above, or in order inside the appropriate | 1338 // put them in alphabetical order above, or in order inside the appropriate |
| 1333 // ifdef at the bottom. The order should match the header. | 1339 // ifdef at the bottom. The order should match the header. |
| 1334 // ----------------------------------------------------------------------------- | 1340 // ----------------------------------------------------------------------------- |
| 1335 | 1341 |
| 1336 } // namespace switches | 1342 } // namespace switches |
| OLD | NEW |