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

Unified Diff: chrome/common/renderer_preferences.h

Issue 155787: Make Linux pass users' font settings through to renderer. (Closed)
Patch Set: remove unneeded include Created 11 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 | « chrome/common/render_messages.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/renderer_preferences.h
diff --git a/chrome/common/renderer_preferences.h b/chrome/common/renderer_preferences.h
index 2f808acb52f5b9dafc9b8c4838966fa02d2e9cf5..95e8ddfc3a066808467f72ae368b54d19040e7e1 100644
--- a/chrome/common/renderer_preferences.h
+++ b/chrome/common/renderer_preferences.h
@@ -12,13 +12,46 @@
#ifndef CHROME_COMMON_RENDERER_PREFERENCES_H_
#define CHROME_COMMON_RENDERER_PREFERENCES_H_
+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,
+};
+
struct RendererPreferences {
// Whether the renderer's current browser context accept drops from the OS
// that result in navigations away from the current page.
bool can_accept_load_drops;
+ // Whether text should be antialiased.
+ // Currently only used by Linux.
+ bool should_antialias_text;
+
+ // The level of hinting to use when rendering text.
+ // Currently only used by Linux.
+ RendererPreferencesHintingEnum hinting;
+
+ // The type of subpixel rendering to use for text.
+ // Currently only used by Linux.
+ RendererPreferencesSubpixelRenderingEnum subpixel_rendering;
+
RendererPreferences()
- : can_accept_load_drops(true) {
+ : can_accept_load_drops(true),
+ should_antialias_text(true),
+ hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT),
+ subpixel_rendering(
+ RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT) {
}
};
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698