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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/renderer_preferences.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/view_messages.h, browser/browser.cc, etc. 10 // common/view_messages.h, browser/browser.cc, etc.
11 11
12 #ifndef CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 12 #ifndef CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
13 #define CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 13 #define CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/gfx/font_render_params.h"
21 20
22 namespace content { 21 namespace content {
23 22
23 enum RendererPreferencesHintingEnum {
24 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0,
25 RENDERER_PREFERENCES_HINTING_NONE,
26 RENDERER_PREFERENCES_HINTING_SLIGHT,
27 RENDERER_PREFERENCES_HINTING_MEDIUM,
28 RENDERER_PREFERENCES_HINTING_FULL,
29 };
30
31 enum RendererPreferencesSubpixelRenderingEnum {
32 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0,
33 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE,
34 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB,
35 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR,
36 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB,
37 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR,
38 };
39
24 enum TapMultipleTargetsStrategy { 40 enum TapMultipleTargetsStrategy {
25 TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0, 41 TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0,
26 TAP_MULTIPLE_TARGETS_STRATEGY_POPUP, 42 TAP_MULTIPLE_TARGETS_STRATEGY_POPUP,
27 TAP_MULTIPLE_TARGETS_STRATEGY_NONE, 43 TAP_MULTIPLE_TARGETS_STRATEGY_NONE,
28 44
29 TAP_MULTIPLE_TARGETS_STRATEGY_MAX = TAP_MULTIPLE_TARGETS_STRATEGY_NONE, 45 TAP_MULTIPLE_TARGETS_STRATEGY_MAX = TAP_MULTIPLE_TARGETS_STRATEGY_NONE,
30 }; 46 };
31 47
32 struct CONTENT_EXPORT RendererPreferences { 48 struct CONTENT_EXPORT RendererPreferences {
33 RendererPreferences(); 49 RendererPreferences();
34 ~RendererPreferences(); 50 ~RendererPreferences();
35 51
36 // Whether the renderer's current browser context accept drops from the OS 52 // Whether the renderer's current browser context accept drops from the OS
37 // that result in navigations away from the current page. 53 // that result in navigations away from the current page.
38 bool can_accept_load_drops; 54 bool can_accept_load_drops;
39 55
40 // Whether text should be antialiased. 56 // Whether text should be antialiased.
41 // Currently only used by Linux. 57 // Currently only used by Linux.
42 bool should_antialias_text; 58 bool should_antialias_text;
43 59
44 // The level of hinting to use when rendering text. 60 // The level of hinting to use when rendering text.
45 // Currently only used by Linux. 61 // Currently only used by Linux.
46 gfx::FontRenderParams::Hinting hinting; 62 RendererPreferencesHintingEnum hinting;
47 63
48 // Whether auto hinter should be used. Currently only used by Linux. 64 // Whether auto hinter should be used. Currently only used by Linux.
49 bool use_autohinter; 65 bool use_autohinter;
50 66
51 // Whether embedded bitmap strikes in fonts should be used. 67 // Whether embedded bitmap strikes in fonts should be used.
52 // Current only used by Linux. 68 // Current only used by Linux.
53 bool use_bitmaps; 69 bool use_bitmaps;
54 70
55 // The type of subpixel rendering to use for text. 71 // The type of subpixel rendering to use for text.
56 // Currently only used by Linux. 72 // Currently only used by Linux.
57 gfx::FontRenderParams::SubpixelRendering subpixel_rendering; 73 RendererPreferencesSubpixelRenderingEnum subpixel_rendering;
58 74
59 // Whether subpixel positioning should be used, permitting fractional X 75 // Whether subpixel positioning should be used, permitting fractional X
60 // positions for glyphs. Currently only used by Linux. 76 // positions for glyphs. Currently only used by Linux.
61 bool use_subpixel_positioning; 77 bool use_subpixel_positioning;
62 78
63 // The color of the focus ring. Currently only used on Linux. 79 // The color of the focus ring. Currently only used on Linux.
64 SkColor focus_ring_color; 80 SkColor focus_ring_color;
65 81
66 // The color of different parts of the scrollbar. Currently only used on 82 // The color of different parts of the scrollbar. Currently only used on
67 // Linux. 83 // Linux.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool plugin_fullscreen_allowed; 146 bool plugin_fullscreen_allowed;
131 147
132 // Whether video-overlay (hole-punching) should be used for the embedded 148 // Whether video-overlay (hole-punching) should be used for the embedded
133 // encrypted video. Currently only used by Android. 149 // encrypted video. Currently only used by Android.
134 bool use_video_overlay_for_embedded_encrypted_video; 150 bool use_video_overlay_for_embedded_encrypted_video;
135 }; 151 };
136 152
137 } // namespace content 153 } // namespace content
138 154
139 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 155 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
OLDNEW
« 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