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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A struct for managing browser's settings that apply to the renderer or its 5 // A struct for managing browser's settings that apply to the renderer or its
6 // webview. These differ from WebPreferences since they apply to Chromium's 6 // webview. These differ from WebPreferences since they apply to Chromium's
7 // glue layer rather than applying to just WebKit. 7 // glue layer rather than applying to just WebKit.
8 // 8 //
9 // Adding new values to this class probably involves updating 9 // Adding new values to this class probably involves updating
10 // common/render_messages.h, browser/browser.cc, etc. 10 // common/render_messages.h, browser/browser.cc, etc.
11 11
12 #ifndef CHROME_COMMON_RENDERER_PREFERENCES_H_ 12 #ifndef CHROME_COMMON_RENDERER_PREFERENCES_H_
13 #define CHROME_COMMON_RENDERER_PREFERENCES_H_ 13 #define CHROME_COMMON_RENDERER_PREFERENCES_H_
14 14
15 enum RendererPreferencesHintingEnum {
16 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0,
17 RENDERER_PREFERENCES_HINTING_NONE,
18 RENDERER_PREFERENCES_HINTING_SLIGHT,
19 RENDERER_PREFERENCES_HINTING_MEDIUM,
20 RENDERER_PREFERENCES_HINTING_FULL,
21 };
22
23 enum RendererPreferencesSubpixelRenderingEnum {
24 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0,
25 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE,
26 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB,
27 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR,
28 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB,
29 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR,
30 };
31
15 struct RendererPreferences { 32 struct RendererPreferences {
16 // Whether the renderer's current browser context accept drops from the OS 33 // Whether the renderer's current browser context accept drops from the OS
17 // that result in navigations away from the current page. 34 // that result in navigations away from the current page.
18 bool can_accept_load_drops; 35 bool can_accept_load_drops;
19 36
37 // Whether text should be antialiased.
38 // Currently only used by Linux.
39 bool should_antialias_text;
40
41 // The level of hinting to use when rendering text.
42 // Currently only used by Linux.
43 RendererPreferencesHintingEnum hinting;
44
45 // The type of subpixel rendering to use for text.
46 // Currently only used by Linux.
47 RendererPreferencesSubpixelRenderingEnum subpixel_rendering;
48
20 RendererPreferences() 49 RendererPreferences()
21 : can_accept_load_drops(true) { 50 : can_accept_load_drops(true),
51 should_antialias_text(true),
52 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT),
53 subpixel_rendering(
54 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT) {
22 } 55 }
23 }; 56 };
24 57
25 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ 58 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_
OLDNEW
« 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