Add disableBlinkFeatures option
This commit is contained in:
parent
4948bcc806
commit
ae71cf3df1
3 changed files with 11 additions and 0 deletions
|
@ -166,6 +166,13 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
||||||
command_line->AppendSwitchASCII(::switches::kEnableBlinkFeatures,
|
command_line->AppendSwitchASCII(::switches::kEnableBlinkFeatures,
|
||||||
blink_features);
|
blink_features);
|
||||||
|
|
||||||
|
// Disable blink features.
|
||||||
|
std::string disable_blink_features;
|
||||||
|
if (web_preferences.GetString(options::kDisableBlinkFeatures,
|
||||||
|
&disable_blink_features))
|
||||||
|
command_line->AppendSwitchASCII(::switches::kDisableBlinkFeatures,
|
||||||
|
disable_blink_features);
|
||||||
|
|
||||||
// The initial visibility state.
|
// The initial visibility state.
|
||||||
NativeWindow* window = NativeWindow::FromWebContents(web_contents);
|
NativeWindow* window = NativeWindow::FromWebContents(web_contents);
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,9 @@ const char kScrollBounce[] = "scrollBounce";
|
||||||
// Enable blink features.
|
// Enable blink features.
|
||||||
const char kBlinkFeatures[] = "blinkFeatures";
|
const char kBlinkFeatures[] = "blinkFeatures";
|
||||||
|
|
||||||
|
// Disable blink features.
|
||||||
|
const char kDisableBlinkFeatures[] = "disableBlinkFeatures";
|
||||||
|
|
||||||
} // namespace options
|
} // namespace options
|
||||||
|
|
||||||
namespace switches {
|
namespace switches {
|
||||||
|
|
|
@ -58,6 +58,7 @@ extern const char kExperimentalCanvasFeatures[];
|
||||||
extern const char kOpenerID[];
|
extern const char kOpenerID[];
|
||||||
extern const char kScrollBounce[];
|
extern const char kScrollBounce[];
|
||||||
extern const char kBlinkFeatures[];
|
extern const char kBlinkFeatures[];
|
||||||
|
extern const char kDisableBlinkFeatures[];
|
||||||
|
|
||||||
} // namespace options
|
} // namespace options
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue