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

Side by Side Diff: content/public/common/renderer_preferences.cc

Issue 410413008: Revert of content: Remove RendererPreferences font-rendering enums. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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/renderer/render_view_linux.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" 7 #include "third_party/skia/include/core/SkColor.h"
8 #include "ui/gfx/font_render_params.h"
9 8
10 namespace { 9 namespace {
11 // The touchpad / touchscreen fling profiles are a matched set 10 // The touchpad / touchscreen fling profiles are a matched set
12 // determined via UX experimentation. Do not modify without 11 // determined via UX experimentation. Do not modify without
13 // first discussing with rjkroege@chromium.org or 12 // first discussing with rjkroege@chromium.org or
14 // wjmaclean@chromium.org. 13 // wjmaclean@chromium.org.
15 const float kDefaultAlpha = -5.70762e+03f; 14 const float kDefaultAlpha = -5.70762e+03f;
16 const float kDefaultBeta = 1.72e+02f; 15 const float kDefaultBeta = 1.72e+02f;
17 const float kDefaultGamma = 3.7e+00f; 16 const float kDefaultGamma = 3.7e+00f;
18 } 17 }
19 18
20 namespace content { 19 namespace content {
21 20
22 RendererPreferences::RendererPreferences() 21 RendererPreferences::RendererPreferences()
23 : can_accept_load_drops(true), 22 : can_accept_load_drops(true),
24 should_antialias_text(true), 23 should_antialias_text(true),
25 hinting(gfx::FontRenderParams::HINTING_MEDIUM), 24 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT),
26 use_autohinter(false), 25 use_autohinter(false),
27 use_bitmaps(false), 26 use_bitmaps(false),
28 subpixel_rendering(gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE), 27 subpixel_rendering(
29 use_subpixel_positioning(true), 28 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT),
29 use_subpixel_positioning(false),
30 focus_ring_color(SkColorSetARGB(255, 229, 151, 0)), 30 focus_ring_color(SkColorSetARGB(255, 229, 151, 0)),
31 thumb_active_color(SkColorSetRGB(244, 244, 244)), 31 thumb_active_color(SkColorSetRGB(244, 244, 244)),
32 thumb_inactive_color(SkColorSetRGB(234, 234, 234)), 32 thumb_inactive_color(SkColorSetRGB(234, 234, 234)),
33 track_color(SkColorSetRGB(211, 211, 211)), 33 track_color(SkColorSetRGB(211, 211, 211)),
34 active_selection_bg_color(SkColorSetRGB(30, 144, 255)), 34 active_selection_bg_color(SkColorSetRGB(30, 144, 255)),
35 active_selection_fg_color(SK_ColorWHITE), 35 active_selection_fg_color(SK_ColorWHITE),
36 inactive_selection_bg_color(SkColorSetRGB(200, 200, 200)), 36 inactive_selection_bg_color(SkColorSetRGB(200, 200, 200)),
37 inactive_selection_fg_color(SkColorSetRGB(50, 50, 50)), 37 inactive_selection_fg_color(SkColorSetRGB(50, 50, 50)),
38 browser_handles_non_local_top_level_requests(false), 38 browser_handles_non_local_top_level_requests(false),
39 browser_handles_all_top_level_requests(false), 39 browser_handles_all_top_level_requests(false),
(...skipping 11 matching lines...) Expand all
51 use_video_overlay_for_embedded_encrypted_video(false) { 51 use_video_overlay_for_embedded_encrypted_video(false) {
52 touchpad_fling_profile[0] = kDefaultAlpha; 52 touchpad_fling_profile[0] = kDefaultAlpha;
53 touchpad_fling_profile[1] = kDefaultBeta; 53 touchpad_fling_profile[1] = kDefaultBeta;
54 touchpad_fling_profile[2] = kDefaultGamma; 54 touchpad_fling_profile[2] = kDefaultGamma;
55 touchscreen_fling_profile = touchpad_fling_profile; 55 touchscreen_fling_profile = touchpad_fling_profile;
56 } 56 }
57 57
58 RendererPreferences::~RendererPreferences() { } 58 RendererPreferences::~RendererPreferences() { }
59 59
60 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/renderer/render_view_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698