Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: content/public/common/renderer_preferences.cc

Issue 11299269: Merge 166146 - Initialize renderer color preferences to reasonable defaults. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/renderer_preferences.cc
===================================================================
--- content/public/common/renderer_preferences.cc (revision 170382)
+++ content/public/common/renderer_preferences.cc (working copy)
@@ -4,6 +4,8 @@
#include "content/public/common/renderer_preferences.h"
+#include "third_party/skia/include/core/SkColor.h"
+
namespace content {
RendererPreferences::RendererPreferences()
@@ -15,14 +17,14 @@
subpixel_rendering(
RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT),
use_subpixel_positioning(false),
- focus_ring_color(0),
- thumb_active_color(0),
- thumb_inactive_color(0),
- track_color(0),
- active_selection_bg_color(0),
- active_selection_fg_color(0),
- inactive_selection_bg_color(0),
- inactive_selection_fg_color(0),
+ focus_ring_color(SkColorSetARGB(255, 229, 151, 0)),
+ thumb_active_color(SkColorSetRGB(244, 244, 244)),
+ thumb_inactive_color(SkColorSetRGB(234, 234, 234)),
+ track_color(SkColorSetRGB(211, 211, 211)),
+ active_selection_bg_color(SkColorSetRGB(30, 144, 255)),
+ active_selection_fg_color(SK_ColorWHITE),
+ inactive_selection_bg_color(SkColorSetRGB(200, 200, 200)),
+ inactive_selection_fg_color(SkColorSetRGB(50, 50, 50)),
browser_handles_non_local_top_level_requests(false),
browser_handles_all_top_level_requests(false),
caret_blink_interval(0),
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698