Add scrollBounce option and disable it by default

This commit is contained in:
Cheng Zhao 2016-05-06 14:57:43 +09:00
parent 4ce26dfa68
commit df397dab30
5 changed files with 35 additions and 0 deletions

View file

@ -141,6 +141,14 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
command_line->AppendSwitchASCII(switches::kOpenerID,
base::IntToString(opener_id));
#if defined(OS_MACOSX)
// Enable scroll bounce.
bool scroll_bounce;
if (web_preferences.GetBoolean(options::kScrollBounce, &scroll_bounce) &&
scroll_bounce)
command_line->AppendSwitch(switches::kScrollBounce);
#endif
// Enable blink features.
std::string blink_features;
if (web_preferences.GetString(options::kBlinkFeatures, &blink_features))