1 // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that can 3 // be found in the LICENSE file. 4 5 #include "libcef/common/cef_switches.h" 6 7 namespace switches { 8 9 // Severity of messages to log. 10 const char kLogSeverity[] = "log-severity"; 11 const char kLogSeverity_Verbose[] = "verbose"; 12 const char kLogSeverity_Info[] = "info"; 13 const char kLogSeverity_Warning[] = "warning"; 14 const char kLogSeverity_Error[] = "error"; 15 const char kLogSeverity_Fatal[] = "fatal"; 16 const char kLogSeverity_Disable[] = "disable"; 17 18 // Path to resources directory. 19 const char kResourcesDirPath[] = "resources-dir-path"; 20 21 // Path to locales directory. 22 const char kLocalesDirPath[] = "locales-dir-path"; 23 24 // Path to locales directory. 25 const char kDisablePackLoading[] = "disable-pack-loading"; 26 27 // Stack size for uncaught exceptions. 28 const char kUncaughtExceptionStackSize[] = "uncaught-exception-stack-size"; 29 30 // Default encoding. 31 const char kDefaultEncoding[] = "default-encoding"; 32 33 // Disable JavaScript. 34 const char kDisableJavascript[] = "disable-javascript"; 35 36 // Disable closing of windows via JavaScript. 37 const char kDisableJavascriptCloseWindows[] = 38 "disable-javascript-close-windows"; 39 40 // Disable clipboard access via JavaScript. 41 const char kDisableJavascriptAccessClipboard[] = 42 "disable-javascript-access-clipboard"; 43 44 // Disable DOM paste via JavaScript execCommand("paste"). 45 const char kDisableJavascriptDomPaste[] = "disable-javascript-dom-paste"; 46 47 // Allow universal access from file URLs. 48 const char kAllowUniversalAccessFromFileUrls[] = 49 "allow-universal-access-from-files"; 50 51 // Disable loading of images from the network. A cached image will still be 52 // rendered if requested. 53 const char kDisableImageLoading[] = "disable-image-loading"; 54 55 // Shrink stand-alone images to fit. 56 const char kImageShrinkStandaloneToFit[] = "image-shrink-standalone-to-fit"; 57 58 // Disable resizing of text areas. 59 const char kDisableTextAreaResize[] = "disable-text-area-resize"; 60 61 // Disable using the tab key to advance focus to links. 62 const char kDisableTabToLinks[] = "disable-tab-to-links"; 63 64 // Disable plugins. 65 const char kDisablePlugins[] = "disable-plugins"; 66 67 // Persist session cookies. 68 const char kPersistSessionCookies[] = "persist-session-cookies"; 69 70 // Persist user preferences. 71 const char kPersistUserPreferences[] = "persist-user-preferences"; 72 73 // Enable media (WebRTC audio/video) streaming. 74 const char kEnableMediaStream[] = "enable-media-stream"; 75 76 // Enable speech input (x-webkit-speech). 77 const char kEnableSpeechInput[] = "enable-speech-input"; 78 79 // Enable the speech input profanity filter. 80 const char kEnableProfanityFilter[] = "enable-profanity-filter"; 81 82 // Disable spell checking. 83 const char kDisableSpellChecking[] = "disable-spell-checking"; 84 85 // Enable the remote spelling service. 86 const char kEnableSpellingService[] = "enable-spelling-service"; 87 88 // Override the default spellchecking language which comes from locales.pak. 89 const char kOverrideSpellCheckLang[] = "override-spell-check-lang"; 90 91 // Disable scroll bounce (rubber-banding) on OS X Lion and newer. 92 const char kDisableScrollBounce[] = "disable-scroll-bounce"; 93 94 // Disable the PDF extension. 95 const char kDisablePdfExtension[] = "disable-pdf-extension"; 96 97 // Default plugin policy action. 98 const char kPluginPolicy[] = "plugin-policy"; 99 // Allow the content. This is the default value. 100 const char kPluginPolicy_Allow[] = "allow"; 101 // Allow important content and block unimportant content based on heuristics. 102 // The user can manually load blocked content. 103 const char kPluginPolicy_Detect[] = "detect"; 104 // Block the content. The user can manually load blocked content. 105 const char kPluginPolicy_Block[] = "block"; 106 107 // Expose preferences used only by unit tests. 108 const char kEnablePreferenceTesting[] = "enable-preference-testing"; 109 110 // Enable print preview. 111 const char kEnablePrintPreview[] = "enable-print-preview"; 112 113 // Disable the timeout for delivering new browser info to the renderer process. 114 const char kDisableNewBrowserInfoTimeout[] = "disable-new-browser-info-timeout"; 115 116 // File used for logging DevTools protocol messages. 117 const char kDevToolsProtocolLogFile[] = "devtools-protocol-log-file"; 118 119 // Enable use of the Chrome runtime in CEF. See issue #2969 for details. 120 const char kEnableChromeRuntime[] = "enable-chrome-runtime"; 121 122 // Delegate all login requests to the client GetAuthCredentials callback when 123 // using the Chrome runtime. 124 const char kDisableChromeLoginPrompt[] = "disable-chrome-login-prompt"; 125 126 // Override the product component of the default User-Agent string. 127 const char kUserAgentProductAndVersion[] = "user-agent-product"; 128 129 // Disable request handling in CEF to faciliate debugging of network-related 130 // issues. 131 const char kDisableRequestHandlingForTesting[] = 132 "disable-request-handling-for-testing"; 133 134 #if BUILDFLAG(IS_MAC) 135 // Path to the framework directory. 136 const char kFrameworkDirPath[] = "framework-dir-path"; 137 const char kMainBundlePath[] = "main-bundle-path"; 138 #endif 139 140 } // namespace switches 141