2014-09-04 17:53:40 +00:00
|
|
|
diff --git public/common/common_param_traits_macros.h public/common/common_param_traits_macros.h
|
2015-11-10 15:18:16 -05:00
|
|
|
index 48ba994..039d8fe 100644
|
2014-09-04 17:53:40 +00:00
|
|
|
--- public/common/common_param_traits_macros.h
|
|
|
|
+++ public/common/common_param_traits_macros.h
|
2015-11-10 15:18:16 -05:00
|
|
|
@@ -195,6 +195,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)
|
2014-09-04 17:53:40 +00:00
|
|
|
diff --git public/common/web_preferences.cc public/common/web_preferences.cc
|
2015-11-10 15:18:16 -05:00
|
|
|
index 6b599c0..d2ff454 100644
|
2014-09-04 17:53:40 +00:00
|
|
|
--- public/common/web_preferences.cc
|
|
|
|
+++ public/common/web_preferences.cc
|
2015-10-09 11:23:12 -04:00
|
|
|
@@ -176,6 +176,7 @@ WebPreferences::WebPreferences()
|
2015-03-19 18:06:16 -04:00
|
|
|
pinch_overlay_scrollbar_thickness(0),
|
2014-09-04 17:53:40 +00:00
|
|
|
use_solid_color_scrollbars(false),
|
|
|
|
navigate_on_drag_drop(true),
|
|
|
|
+ base_background_color(0xFFFFFFFF), // Color::white
|
2014-12-13 20:18:31 +00:00
|
|
|
v8_cache_options(V8_CACHE_OPTIONS_DEFAULT),
|
2015-08-25 18:33:31 -04:00
|
|
|
slimming_paint_v2_enabled(false),
|
2015-11-10 15:18:16 -05:00
|
|
|
cookie_enabled(true),
|
2014-09-04 17:53:40 +00:00
|
|
|
diff --git public/common/web_preferences.h public/common/web_preferences.h
|
2015-11-10 15:18:16 -05:00
|
|
|
index 0378cd7..484342b 100644
|
2014-09-04 17:53:40 +00:00
|
|
|
--- public/common/web_preferences.h
|
|
|
|
+++ public/common/web_preferences.h
|
2015-08-14 10:41:08 -04:00
|
|
|
@@ -173,6 +173,7 @@ struct CONTENT_EXPORT WebPreferences {
|
2015-03-19 18:06:16 -04:00
|
|
|
int pinch_overlay_scrollbar_thickness;
|
2014-09-04 17:53:40 +00:00
|
|
|
bool use_solid_color_scrollbars;
|
|
|
|
bool navigate_on_drag_drop;
|
|
|
|
+ uint32_t base_background_color;
|
|
|
|
V8CacheOptions v8_cache_options;
|
2015-08-25 18:33:31 -04:00
|
|
|
bool slimming_paint_v2_enabled;
|
2015-11-10 15:18:16 -05:00
|
|
|
|
2014-09-04 17:53:40 +00:00
|
|
|
diff --git renderer/render_view_impl.cc renderer/render_view_impl.cc
|
2015-11-10 15:18:16 -05:00
|
|
|
index 3fd5464..4bf3639 100644
|
2014-09-04 17:53:40 +00:00
|
|
|
--- renderer/render_view_impl.cc
|
|
|
|
+++ renderer/render_view_impl.cc
|
2015-11-10 15:18:16 -05:00
|
|
|
@@ -953,6 +953,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
|
2015-10-09 11:23:12 -04:00
|
|
|
settings->setCookieEnabled(prefs.cookie_enabled);
|
|
|
|
settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop);
|
2014-04-08 19:33:48 +00:00
|
|
|
|
|
|
|
+ web_view->setBaseBackgroundColor(prefs.base_background_color);
|
|
|
|
+
|
2014-04-30 17:14:40 +00:00
|
|
|
// By default, allow_universal_access_from_file_urls is set to false and thus
|
|
|
|
// we mitigate attacks from local HTML files by not granting file:// URLs
|
|
|
|
// universal access. Only test shell will enable this.
|