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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/renderer_preferences.h" 5 #include "content/public/common/renderer_preferences.h"
6 6
7 #include "third_party/skia/include/core/SkColor.h"
8
7 namespace content { 9 namespace content {
8 10
9 RendererPreferences::RendererPreferences() 11 RendererPreferences::RendererPreferences()
10 : can_accept_load_drops(true), 12 : can_accept_load_drops(true),
11 should_antialias_text(true), 13 should_antialias_text(true),
12 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), 14 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT),
13 use_autohinter(false), 15 use_autohinter(false),
14 use_bitmaps(false), 16 use_bitmaps(false),
15 subpixel_rendering( 17 subpixel_rendering(
16 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), 18 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT),
17 use_subpixel_positioning(false), 19 use_subpixel_positioning(false),
18 focus_ring_color(0), 20 focus_ring_color(SkColorSetARGB(255, 229, 151, 0)),
19 thumb_active_color(0), 21 thumb_active_color(SkColorSetRGB(244, 244, 244)),
20 thumb_inactive_color(0), 22 thumb_inactive_color(SkColorSetRGB(234, 234, 234)),
21 track_color(0), 23 track_color(SkColorSetRGB(211, 211, 211)),
22 active_selection_bg_color(0), 24 active_selection_bg_color(SkColorSetRGB(30, 144, 255)),
23 active_selection_fg_color(0), 25 active_selection_fg_color(SK_ColorWHITE),
24 inactive_selection_bg_color(0), 26 inactive_selection_bg_color(SkColorSetRGB(200, 200, 200)),
25 inactive_selection_fg_color(0), 27 inactive_selection_fg_color(SkColorSetRGB(50, 50, 50)),
26 browser_handles_non_local_top_level_requests(false), 28 browser_handles_non_local_top_level_requests(false),
27 browser_handles_all_top_level_requests(false), 29 browser_handles_all_top_level_requests(false),
28 caret_blink_interval(0), 30 caret_blink_interval(0),
29 enable_referrers(true), 31 enable_referrers(true),
30 enable_do_not_track(false), 32 enable_do_not_track(false),
31 default_zoom_level(0), 33 default_zoom_level(0),
32 throttle_input_events(true) { 34 throttle_input_events(true) {
33 } 35 }
34 36
35 } // namespace content 37 } // namespace content
OLDNEW
« 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