Move WebPreferences methods of RenderView to Blink
As the second step to convert ViewMsg_UpdateWebPreferences
to Mojo, this CL moves needed methods from content::RenderViewImpl
to blink::WebView because they will be called by UpdatePreferences()
Mojo implementation method in the following CL.
- Move ApplyWebPreferences() to Blink.
- Rename Get|SetWebkitPreferences() to Get|SetBlinkPreferences().
- Remove |webkit_preferences_| variable in RenderViewImpl.
- Remove webkit_preferences(), then start to use GetBlinkPreferences().
- Move needed content switches to Blink.
Bug: 1097943
Change-Id: Ifff24d84c3dbcd8abceaf4ece8a03f2c17b28d2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409887
Commit-Queue: Gyuyoung Kim <[email protected]>
Reviewed-by: Andrey Kosyakov <[email protected]>
Reviewed-by: Tommy Li <[email protected]>
Reviewed-by: Rebekah Potter <[email protected]>
Reviewed-by: Dave Tapuska <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Bo <[email protected]>
Cr-Commit-Position: refs/heads/master@{#807366}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index bf6fc878a2..32808a38 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -287,9 +287,9 @@
const FeatureEntry::Choice kTouchTextSelectionStrategyChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kTouchSelectionStrategyCharacter,
- switches::kTouchTextSelectionStrategy, "character"},
+ blink::switches::kTouchTextSelectionStrategy, "character"},
{flag_descriptions::kTouchSelectionStrategyDirection,
- switches::kTouchTextSelectionStrategy, "direction"}};
+ blink::switches::kTouchTextSelectionStrategy, "direction"}};
const FeatureEntry::Choice kTraceUploadURL[] = {
{flags_ui::kGenericExperimentChoiceDisabled, "", ""},
@@ -306,9 +306,9 @@
const FeatureEntry::Choice kPassiveListenersChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kPassiveEventListenerTrue,
- switches::kPassiveListenersDefault, "true"},
+ blink::switches::kPassiveListenersDefault, "true"},
{flag_descriptions::kPassiveEventListenerForceAllTrue,
- switches::kPassiveListenersDefault, "forcealltrue"},
+ blink::switches::kPassiveListenersDefault, "forcealltrue"},
};
const FeatureEntry::Choice kDataReductionProxyServerExperiment[] = {
@@ -2909,7 +2909,7 @@
"IPH_DemoMode")},
{"disable-threaded-scrolling", flag_descriptions::kThreadedScrollingName,
flag_descriptions::kThreadedScrollingDescription, kOsAll,
- SINGLE_DISABLE_VALUE_TYPE(switches::kDisableThreadedScrolling)},
+ SINGLE_DISABLE_VALUE_TYPE(blink::switches::kDisableThreadedScrolling)},
{"extension-content-verification",
flag_descriptions::kExtensionContentVerificationName,
flag_descriptions::kExtensionContentVerificationDescription, kOsDesktop,
@@ -3278,9 +3278,9 @@
// features controlled by kBlinkSettings, we'll need to add logic to
// merge the flag values.
ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
- switches::kBlinkSettings,
+ blink::switches::kBlinkSettings,
"disallowFetchForDocWrittenScriptsInMainFrame=true",
- switches::kBlinkSettings,
+ blink::switches::kBlinkSettings,
"disallowFetchForDocWrittenScriptsInMainFrame=false")},
#if defined(OS_WIN)
{"use-winrt-midi-api", flag_descriptions::kUseWinrtMidiApiName,