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

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

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, 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 ce02b173a6b812fe8946adc0fb2fd74a48d51572..43e43c9e58931d42c780a9f283d3f811a4e21427 100644
--- a/content/public/common/renderer_preferences.h
+++ b/content/public/common/renderer_preferences.h
@@ -17,9 +17,25 @@
#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,
@@ -43,7 +59,7 @@
// The level of hinting to use when rendering text.
// Currently only used by Linux.
- gfx::FontRenderParams::Hinting hinting;
+ RendererPreferencesHintingEnum hinting;
// Whether auto hinter should be used. Currently only used by Linux.
bool use_autohinter;
@@ -54,7 +70,7 @@
// The type of subpixel rendering to use for text.
// Currently only used by Linux.
- gfx::FontRenderParams::SubpixelRendering subpixel_rendering;
+ RendererPreferencesSubpixelRenderingEnum 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