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

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

Issue 413523004: content: Remove RendererPreferences font-rendering enums. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android compile, hopefully Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/renderer_preferences.h ('k') | content/renderer/render_view_linux.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
diff --git a/content/public/common/renderer_preferences.cc b/content/public/common/renderer_preferences.cc
index 1e4c6d55ec82770d0839efd0d992a732d91fc263..eb4cb47b3d6ac0d794bd8a1f1e69b095c780d4ad 100644
--- a/content/public/common/renderer_preferences.cc
+++ b/content/public/common/renderer_preferences.cc
@@ -5,6 +5,7 @@
#include "content/public/common/renderer_preferences.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/font_render_params.h"
namespace {
// The touchpad / touchscreen fling profiles are a matched set
@@ -21,12 +22,11 @@ namespace content {
RendererPreferences::RendererPreferences()
: can_accept_load_drops(true),
should_antialias_text(true),
- hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT),
+ hinting(gfx::FontRenderParams::HINTING_MEDIUM),
use_autohinter(false),
use_bitmaps(false),
- subpixel_rendering(
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT),
- use_subpixel_positioning(false),
+ subpixel_rendering(gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE),
+ use_subpixel_positioning(true),
focus_ring_color(SkColorSetARGB(255, 229, 151, 0)),
thumb_active_color(SkColorSetRGB(244, 244, 244)),
thumb_inactive_color(SkColorSetRGB(234, 234, 234)),
« 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