2017-04-26 21:59:52 -04:00
|
|
|
diff --git content/public/common/common_param_traits_macros.h content/public/common/common_param_traits_macros.h
|
2019-11-12 11:11:44 -05:00
|
|
|
index 5411d32dbfd1..faf738b6b827 100644
|
2017-04-26 21:59:52 -04:00
|
|
|
--- content/public/common/common_param_traits_macros.h
|
|
|
|
+++ content/public/common/common_param_traits_macros.h
|
2019-11-12 11:11:44 -05:00
|
|
|
@@ -191,6 +191,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
2014-09-04 17:53:40 +00:00
|
|
|
IPC_STRUCT_TRAITS_MEMBER(main_frame_resizes_are_orientation_changes)
|
2014-04-08 19:33:48 +00:00
|
|
|
IPC_STRUCT_TRAITS_MEMBER(initialize_at_minimum_page_scale)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(smart_insert_delete_enabled)
|
|
|
|
+ IPC_STRUCT_TRAITS_MEMBER(base_background_color)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(cookie_enabled)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(navigate_on_drag_drop)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(spatial_navigation_enabled)
|
2017-04-26 21:59:52 -04:00
|
|
|
diff --git content/public/common/web_preferences.cc content/public/common/web_preferences.cc
|
2019-11-12 11:11:44 -05:00
|
|
|
index 4b765944962d..7fe6d042bd53 100644
|
2017-04-26 21:59:52 -04:00
|
|
|
--- content/public/common/web_preferences.cc
|
|
|
|
+++ content/public/common/web_preferences.cc
|
2019-10-01 13:55:16 +00:00
|
|
|
@@ -167,6 +167,7 @@ WebPreferences::WebPreferences()
|
2019-09-04 15:13:32 +00:00
|
|
|
caret_browsing_enabled(false),
|
2014-09-04 17:53:40 +00:00
|
|
|
use_solid_color_scrollbars(false),
|
|
|
|
navigate_on_drag_drop(true),
|
|
|
|
+ base_background_color(0xFFFFFFFF), // Color::white
|
2019-02-20 19:42:36 -05:00
|
|
|
v8_cache_options(blink::mojom::V8CacheOptions::kDefault),
|
2016-04-27 16:38:52 -04:00
|
|
|
record_whole_document(false),
|
2019-01-17 10:56:52 +01:00
|
|
|
cookie_enabled(true),
|
2017-04-26 21:59:52 -04:00
|
|
|
diff --git content/public/common/web_preferences.h content/public/common/web_preferences.h
|
2019-11-12 11:11:44 -05:00
|
|
|
index 700cba9043f0..6e0b11c28d89 100644
|
2017-04-26 21:59:52 -04:00
|
|
|
--- content/public/common/web_preferences.h
|
|
|
|
+++ content/public/common/web_preferences.h
|
2019-11-12 11:11:44 -05:00
|
|
|
@@ -183,6 +183,7 @@ struct CONTENT_EXPORT WebPreferences {
|
2019-09-04 15:13:32 +00:00
|
|
|
bool caret_browsing_enabled;
|
2014-09-04 17:53:40 +00:00
|
|
|
bool use_solid_color_scrollbars;
|
|
|
|
bool navigate_on_drag_drop;
|
|
|
|
+ uint32_t base_background_color;
|
2019-02-20 19:42:36 -05:00
|
|
|
blink::mojom::V8CacheOptions v8_cache_options;
|
2016-04-27 16:38:52 -04:00
|
|
|
bool record_whole_document;
|
2019-01-17 10:56:52 +01:00
|
|
|
|
2017-04-26 21:59:52 -04:00
|
|
|
diff --git content/renderer/render_view_impl.cc content/renderer/render_view_impl.cc
|
2019-11-12 11:11:44 -05:00
|
|
|
index 16b6279b2228..f6c6af2559da 100644
|
2017-04-26 21:59:52 -04:00
|
|
|
--- content/renderer/render_view_impl.cc
|
|
|
|
+++ content/renderer/render_view_impl.cc
|
2019-11-12 11:11:44 -05:00
|
|
|
@@ -1020,6 +1020,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
|
2018-11-30 17:21:07 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
WebRuntimeFeatures::EnableTranslateService(prefs.translate_service_available);
|
2018-11-02 21:15:09 -04:00
|
|
|
+
|
2018-02-22 12:59:06 -05:00
|
|
|
+ web_view->SetBaseBackgroundColor(prefs.base_background_color);
|
2016-04-27 16:38:52 -04:00
|
|
|
}
|
|
|
|
|
2018-11-02 21:15:09 -04:00
|
|
|
/*static*/
|