Home
last modified time | relevance | path

Searched refs:HasSwitch (Results 1 – 25 of 71) sorted by relevance

123

/third_party/cef/tests/cefclient/browser/
Dmain_context_impl.cc56 if (command_line_->HasSwitch(switches::kUrl)) in MainContextImpl()
63 command_line_->HasSwitch(switches::kOffScreenRenderingEnabled); in MainContextImpl()
66 command_line_->HasSwitch(switches::kOffScreenFrameRate)) { in MainContextImpl()
76 command_line_->HasSwitch(switches::kTransparentPaintingEnabled); in MainContextImpl()
82 command_line_->HasSwitch(switches::kSharedTextureEnabled); in MainContextImpl()
87 command_line_->HasSwitch(switches::kExternalBeginFrameEnabled); in MainContextImpl()
100 command_line_->HasSwitch(switches::kEnableChromeRuntime); in MainContextImpl()
109 use_views_ = command_line_->HasSwitch(switches::kUseViews); in MainContextImpl()
125 if (use_views_ && command_line->HasSwitch(switches::kHideFrame) && in MainContextImpl()
126 !command_line_->HasSwitch(switches::kUrl)) { in MainContextImpl()
[all …]
Dpreferences_test.cc187 command_line->HasSwitch("disable-spell-checking")); in OnPreferencesState()
192 command_line->HasSwitch("no-proxy-server") || in OnPreferencesState()
193 command_line->HasSwitch("proxy-auto-detect") || in OnPreferencesState()
194 command_line->HasSwitch("proxy-pac-url") || in OnPreferencesState()
195 command_line->HasSwitch("proxy-server")); in OnPreferencesState()
200 command_line->HasSwitch("allow-running-insecure-content")); in OnPreferencesState()
Droot_window_manager.cc35 if (command_line->HasSwitch(switches::kLoadExtension)) { in OnRequestContextInitialized()
99 command_line->HasSwitch(switches::kRequestContextPerBrowser); in RootWindowManager()
101 command_line->HasSwitch(switches::kRequestContextSharedCache); in RootWindowManager()
306 if (command_line->HasSwitch(switches::kCachePath)) { in GetRequestContext()
/third_party/cef/tests/shared/browser/
Dclient_app_browser.cc23 command_line->HasSwitch(client::switches::kMultiThreadedMessageLoop); in PopulateSettings()
28 command_line->HasSwitch(client::switches::kExternalMessagePump); in PopulateSettings()
50 if (command_line->HasSwitch(switches::kOffScreenRenderingEnabled) && in OnBeforeCommandLineProcessing()
51 !command_line->HasSwitch(switches::kSharedTextureEnabled)) { in OnBeforeCommandLineProcessing()
56 if (!command_line->HasSwitch(switches::kEnableGPU)) { in OnBeforeCommandLineProcessing()
62 if (command_line->HasSwitch(switches::kUseViews) && in OnBeforeCommandLineProcessing()
63 !command_line->HasSwitch("top-chrome-md")) { in OnBeforeCommandLineProcessing()
70 if (!command_line->HasSwitch(switches::kCachePath) && in OnBeforeCommandLineProcessing()
71 !command_line->HasSwitch("disable-gpu-shader-disk-cache")) { in OnBeforeCommandLineProcessing()
/third_party/gn/src/gn/
Dcommand_gen.cc201 bool quiet = command_line->HasSwitch(switches::kQuiet); in RunIdeWriter()
226 if (command_line->HasSwitch(kSwitchSln)) in RunIdeWriter()
229 if (command_line->HasSwitch(kSwitchFilters)) in RunIdeWriter()
232 if (command_line->HasSwitch(kSwitchIdeValueWinSdk)) in RunIdeWriter()
235 if (command_line->HasSwitch(kSwitchNinjaExtraArgs)) { in RunIdeWriter()
240 if (command_line->HasSwitch(kSwitchNinjaExecutable)) { in RunIdeWriter()
244 bool no_deps = command_line->HasSwitch(kSwitchNoDeps); in RunIdeWriter()
290 if (command_line->HasSwitch(kSwitchIdeRootTarget)) in RunIdeWriter()
331 bool quiet = command_line->HasSwitch(switches::kQuiet); in RunRustProjectWriter()
350 bool quiet = command_line->HasSwitch(switches::kQuiet); in RunCompileCommandsWriter()
[all …]
Dcommands.cc393 result.has_quiet_ = cmdline.HasSwitch("a"); in InitFrom()
394 result.has_force_ = cmdline.HasSwitch("force"); in InitFrom()
395 result.has_all_ = cmdline.HasSwitch("all"); in InitFrom()
396 result.has_blame_ = cmdline.HasSwitch("blame"); in InitFrom()
397 result.has_tree_ = cmdline.HasSwitch("tree"); in InitFrom()
400 cmdline.HasSwitch(switches::kDefaultToolchain); in InitFrom()
402 result.has_check_generated_ = cmdline.HasSwitch("check-generated"); in InitFrom()
403 result.has_check_system_ = cmdline.HasSwitch("check-system"); in InitFrom()
404 result.has_public_ = cmdline.HasSwitch("public"); in InitFrom()
405 result.has_with_data_ = cmdline.HasSwitch("with-data"); in InitFrom()
[all …]
Dgn_main.cc47 if (cmdline.HasSwitch("help") || cmdline.HasSwitch("h")) { in main()
50 } else if (cmdline.HasSwitch(switches::kVersion)) { in main()
Dcommand_check.cc198 bool default_toolchain_only = cmdline->HasSwitch(switches::kDefaultToolchain); in RunCheck()
240 bool force = cmdline->HasSwitch("force"); in RunCheck()
241 bool check_generated = cmdline->HasSwitch("check-generated"); in RunCheck()
243 setup->check_system_includes() || cmdline->HasSwitch("check-system"); in RunCheck()
250 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kQuiet)) { in RunCheck()
Dcommand_desc.cc206 bool tree = base::CommandLine::ForCurrentProcess()->HasSwitch(kTree); in ConfigsHandler()
217 bool tree = base::CommandLine::ForCurrentProcess()->HasSwitch(kTree); in DepsHandler()
218 bool all = base::CommandLine::ForCurrentProcess()->HasSwitch(kTree); in DepsHandler()
648 setup, target_list, cmdline->HasSwitch(switches::kDefaultToolchain), in RunDesc()
674 target, what_to_print, cmdline->HasSwitch(kAll), in RunDesc()
675 cmdline->HasSwitch(kTree), cmdline->HasSwitch(kBlame))); in RunDesc()
700 cmdline->HasSwitch(kAll), cmdline->HasSwitch(kTree), in RunDesc()
701 cmdline->HasSwitch(kBlame))) in RunDesc()
Dsetup.cc393 scheduler_.set_verbose_logging(cmdline.HasSwitch(switches::kVerbose)); in DoSetupWithErr()
394 if (cmdline.HasSwitch(switches::kTime) || in DoSetupWithErr()
395 cmdline.HasSwitch(switches::kTracelog)) in DoSetupWithErr()
465 if (cmdline.HasSwitch(switches::kFailOnUnusedArgs)) { in RunPostMessageLoop()
496 if (cmdline.HasSwitch(switches::kTime)) in RunPostMessageLoop()
498 if (cmdline.HasSwitch(switches::kTracelog)) in RunPostMessageLoop()
513 if (cmdline.HasSwitch(switches::kArgs) || in FillArguments()
778 if (cmdline.HasSwitch(switches::kScriptExecutable)) { in FillPythonPath()
908 if (cmdline.HasSwitch(switches::kRootTarget)) { in FillOtherConfig()
Dstandard_out.cc47 if (cmdline->HasSwitch(switches::kMarkdown)) { in EnsureInitialized()
52 if (cmdline->HasSwitch(switches::kNoColor)) { in EnsureInitialized()
66 if (cmdline->HasSwitch(switches::kColor)) in EnsureInitialized()
Dcommand_refs.cc350 bool tree = cmdline->HasSwitch("tree");
351 bool all = cmdline->HasSwitch("all");
352 bool default_toolchain_only = cmdline->HasSwitch(switches::kDefaultToolchain);
421 bool quiet = cmdline->HasSwitch("q");
Dcommand_args.cc236 base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchOverridesOnly); in ListArgs()
238 base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchShort); in ListArgs()
240 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchJson)) { in ListArgs()
505 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kSwitchList))
Dcommand_path.cc335 options.print_what = base::CommandLine::ForCurrentProcess()->HasSwitch("all") in RunPath()
339 base::CommandLine::ForCurrentProcess()->HasSwitch("public"); in RunPath()
341 base::CommandLine::ForCurrentProcess()->HasSwitch("with-data"); in RunPath()
/third_party/cef/libcef/common/extensions/
Dextensions_util.cc15 static bool enabled = !base::CommandLine::ForCurrentProcess()->HasSwitch( in ExtensionsEnabled()
22 ExtensionsEnabled() && !base::CommandLine::ForCurrentProcess()->HasSwitch( in PdfExtensionEnabled()
35 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in PrintPreviewEnabled()
40 return base::CommandLine::ForCurrentProcess()->HasSwitch( in PrintPreviewEnabled()
/third_party/cef/libcef/browser/prefs/
Drenderer_prefs.cc133 if (base::CommandLine::ForCurrentProcess()->HasSwitch( in SetChromePrefs()
234 if (command_line->HasSwitch(switches::kDefaultEncoding)) { in SetCommandLinePrefDefaults()
239 if (command_line->HasSwitch(switches::kDisableJavascriptDomPaste)) in SetCommandLinePrefDefaults()
241 if (command_line->HasSwitch(switches::kDisableImageLoading)) in SetCommandLinePrefDefaults()
243 if (command_line->HasSwitch(switches::kDisableTabToLinks)) in SetCommandLinePrefDefaults()
245 if (command_line->HasSwitch(switches::kDisablePlugins)) in SetCommandLinePrefDefaults()
254 !command_line->HasSwitch(switches::kDisableJavascript); in SetDefaultPrefs()
256 !command_line->HasSwitch(switches::kDisableJavascriptCloseWindows); in SetDefaultPrefs()
258 !command_line->HasSwitch(switches::kDisableJavascriptAccessClipboard); in SetDefaultPrefs()
260 command_line->HasSwitch(switches::kAllowUniversalAccessFromFileUrls); in SetDefaultPrefs()
[all …]
/third_party/cef/tests/ceftests/
Dcommand_line_unittest.cc18 EXPECT_TRUE(command_line->HasSwitch("switch1")); in VerifyCommandLine()
22 EXPECT_TRUE(command_line->HasSwitch("SWITCH2")); in VerifyCommandLine()
25 EXPECT_TRUE(command_line->HasSwitch("switch3")); in VerifyCommandLine()
28 EXPECT_TRUE(command_line->HasSwitch("switch4")); in VerifyCommandLine()
31 EXPECT_FALSE(command_line->HasSwitch("switchnoexist")); in VerifyCommandLine()
Dtest_suite.cc98 if (!command_line_->HasSwitch("type")) { in CefTestSuite()
144 command_line_->HasSwitch(client::switches::kEnableChromeRuntime); in GetSettings()
/third_party/cef/tests/cefclient/
Dcefclient_win.cc104 command_line->HasSwitch(switches::kAlwaysOnTop); in RunMain()
106 !command_line->HasSwitch(switches::kHideControls); in RunMain()
Dcefclient_gtk.cc140 command_line->HasSwitch(switches::kAlwaysOnTop); in RunMain()
142 !command_line->HasSwitch(switches::kHideControls); in RunMain()
/third_party/cef/libcef/browser/devtools/
Ddevtools_manager_delegate.cc77 if (command_line.HasSwitch(switches::kRemoteDebuggingPort)) { in CreateSocketFactory()
110 if (command_line.HasSwitch(switches::kRemoteDebuggingPipe)) { in StartHttpHandler()
/third_party/cef/libcef/common/alloy/
Dalloy_main_delegate.cc163 } else if (!command_line->HasSwitch(switches::kLang)) { in BasicStartupComplete()
171 if (log_file.empty() && command_line->HasSwitch(switches::kLogFile)) { in BasicStartupComplete()
365 if (command_line->HasSwitch(switches::kDisablePackLoading)) in PreSandboxStartup()
484 if (command_line->HasSwitch(switches::kResourcesDirPath)) { in InitializeResourceBundle()
504 if (command_line->HasSwitch(switches::kLocalesDirPath)) in InitializeResourceBundle()
/third_party/gn/src/base/
Dcommand_line.h167 bool HasSwitch(std::string_view switch_string) const;
168 bool HasSwitch(const char switch_constant[]) const;
Dcommand_line.cc286 bool CommandLine::HasSwitch(std::string_view switch_string) const { in HasSwitch() function in base::CommandLine
291 bool CommandLine::HasSwitch(const char switch_constant[]) const { in HasSwitch() function in base::CommandLine
292 return HasSwitch(std::string_view(switch_constant)); in HasSwitch()
367 if (source.HasSwitch(switches[i])) in CopySwitchesFrom()
/third_party/cef/libcef/common/
Dcrash_reporting.cc122 CHECK(command_line.HasSwitch(switches::kProcessType) && in InitCrashReporter()
126 CHECK(!command_line.HasSwitch(switches::kProcessType) && in InitCrashReporter()

123