| 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 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 // Prints version information and quits. | 1323 // Prints version information and quits. |
| 1324 const char kVersion[] = "version"; | 1324 const char kVersion[] = "version"; |
| 1325 | 1325 |
| 1326 // Cycle through a series of URLs listed in the specified file. | 1326 // Cycle through a series of URLs listed in the specified file. |
| 1327 const char kVisitURLs[] = "visit-urls"; | 1327 const char kVisitURLs[] = "visit-urls"; |
| 1328 | 1328 |
| 1329 // Enable the "native services" feature of web-intents. | 1329 // Enable the "native services" feature of web-intents. |
| 1330 const char kWebIntentsNativeServicesEnabled[] = | 1330 const char kWebIntentsNativeServicesEnabled[] = |
| 1331 "web-intents-native-services-enabled"; | 1331 "web-intents-native-services-enabled"; |
| 1332 | 1332 |
| 1333 // Enable invocation of web intents from web content. |
| 1334 const char kWebIntentsInvocationEnabled[] = |
| 1335 "enable-web-intents-invocation"; |
| 1336 |
| 1333 // Adds the given extension ID to all the permission whitelists. | 1337 // Adds the given extension ID to all the permission whitelists. |
| 1334 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 1338 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 1335 | 1339 |
| 1336 // Specify the initial window position: --window-position=x,y | 1340 // Specify the initial window position: --window-position=x,y |
| 1337 const char kWindowPosition[] = "window-position"; | 1341 const char kWindowPosition[] = "window-position"; |
| 1338 | 1342 |
| 1339 // Specify the initial window size: --window-size=w,h | 1343 // Specify the initial window size: --window-size=w,h |
| 1340 const char kWindowSize[] = "window-size"; | 1344 const char kWindowSize[] = "window-size"; |
| 1341 | 1345 |
| 1342 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to | 1346 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 return true; | 1577 return true; |
| 1574 #elif defined(OS_WIN) | 1578 #elif defined(OS_WIN) |
| 1575 return true; | 1579 return true; |
| 1576 #else | 1580 #else |
| 1577 return CommandLine::ForCurrentProcess()->HasSwitch( | 1581 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 1578 switches::kEnableFramelessConstrainedDialogs); | 1582 switches::kEnableFramelessConstrainedDialogs); |
| 1579 #endif | 1583 #endif |
| 1580 } | 1584 } |
| 1581 | 1585 |
| 1582 } // namespace chrome | 1586 } // namespace chrome |
| OLD | NEW |