| 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) {
|
| }
|
| };
|
|
|
|
|