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

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

Issue 417953006: Reland r285145: Remove RendererPreferences font-rendering enums. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again (cleanly... not sure why cq patch step is failing) 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/common/view_messages.h ('k') | content/public/common/renderer_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/renderer_preferences.h
diff --git a/content/public/common/renderer_preferences.h b/content/public/common/renderer_preferences.h
index 43e43c9e58931d42c780a9f283d3f811a4e21427..ce02b173a6b812fe8946adc0fb2fd74a48d51572 100644
--- a/content/public/common/renderer_preferences.h
+++ b/content/public/common/renderer_preferences.h
@@ -17,26 +17,10 @@
#include "content/common/content_export.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/gfx/font_render_params.h"
namespace content {
-enum RendererPreferencesHintingEnum {
- RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0,
- RENDERER_PREFERENCES_HINTING_NONE,
- RENDERER_PREFERENCES_HINTING_SLIGHT,
- RENDERER_PREFERENCES_HINTING_MEDIUM,
- RENDERER_PREFERENCES_HINTING_FULL,
-};
-
-enum RendererPreferencesSubpixelRenderingEnum {
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0,
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE,
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB,
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR,
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB,
- RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR,
-};
-
enum TapMultipleTargetsStrategy {
TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0,
TAP_MULTIPLE_TARGETS_STRATEGY_POPUP,
@@ -59,7 +43,7 @@ struct CONTENT_EXPORT RendererPreferences {
// The level of hinting to use when rendering text.
// Currently only used by Linux.
- RendererPreferencesHintingEnum hinting;
+ gfx::FontRenderParams::Hinting hinting;
// Whether auto hinter should be used. Currently only used by Linux.
bool use_autohinter;
@@ -70,7 +54,7 @@ struct CONTENT_EXPORT RendererPreferences {
// The type of subpixel rendering to use for text.
// Currently only used by Linux.
- RendererPreferencesSubpixelRenderingEnum subpixel_rendering;
+ gfx::FontRenderParams::SubpixelRendering subpixel_rendering;
// Whether subpixel positioning should be used, permitting fractional X
// positions for glyphs. Currently only used by Linux.
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/renderer_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698