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

Side by Side Diff: content/public/common/renderer_preferences.h

Issue 413523004: content: Remove RendererPreferences font-rendering enums. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android compile, hopefully 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"
20 21
21 namespace content { 22 namespace content {
22 23
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
40 enum TapMultipleTargetsStrategy { 24 enum TapMultipleTargetsStrategy {
41 TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0, 25 TAP_MULTIPLE_TARGETS_STRATEGY_ZOOM = 0,
42 TAP_MULTIPLE_TARGETS_STRATEGY_POPUP, 26 TAP_MULTIPLE_TARGETS_STRATEGY_POPUP,
43 TAP_MULTIPLE_TARGETS_STRATEGY_NONE, 27 TAP_MULTIPLE_TARGETS_STRATEGY_NONE,
44 28
45 TAP_MULTIPLE_TARGETS_STRATEGY_MAX = TAP_MULTIPLE_TARGETS_STRATEGY_NONE, 29 TAP_MULTIPLE_TARGETS_STRATEGY_MAX = TAP_MULTIPLE_TARGETS_STRATEGY_NONE,
46 }; 30 };
47 31
48 struct CONTENT_EXPORT RendererPreferences { 32 struct CONTENT_EXPORT RendererPreferences {
49 RendererPreferences(); 33 RendererPreferences();
50 ~RendererPreferences(); 34 ~RendererPreferences();
51 35
52 // Whether the renderer's current browser context accept drops from the OS 36 // Whether the renderer's current browser context accept drops from the OS
53 // that result in navigations away from the current page. 37 // that result in navigations away from the current page.
54 bool can_accept_load_drops; 38 bool can_accept_load_drops;
55 39
56 // Whether text should be antialiased. 40 // Whether text should be antialiased.
57 // Currently only used by Linux. 41 // Currently only used by Linux.
58 bool should_antialias_text; 42 bool should_antialias_text;
59 43
60 // The level of hinting to use when rendering text. 44 // The level of hinting to use when rendering text.
61 // Currently only used by Linux. 45 // Currently only used by Linux.
62 RendererPreferencesHintingEnum hinting; 46 gfx::FontRenderParams::Hinting hinting;
63 47
64 // Whether auto hinter should be used. Currently only used by Linux. 48 // Whether auto hinter should be used. Currently only used by Linux.
65 bool use_autohinter; 49 bool use_autohinter;
66 50
67 // Whether embedded bitmap strikes in fonts should be used. 51 // Whether embedded bitmap strikes in fonts should be used.
68 // Current only used by Linux. 52 // Current only used by Linux.
69 bool use_bitmaps; 53 bool use_bitmaps;
70 54
71 // The type of subpixel rendering to use for text. 55 // The type of subpixel rendering to use for text.
72 // Currently only used by Linux. 56 // Currently only used by Linux.
73 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; 57 gfx::FontRenderParams::SubpixelRendering subpixel_rendering;
74 58
75 // Whether subpixel positioning should be used, permitting fractional X 59 // Whether subpixel positioning should be used, permitting fractional X
76 // positions for glyphs. Currently only used by Linux. 60 // positions for glyphs. Currently only used by Linux.
77 bool use_subpixel_positioning; 61 bool use_subpixel_positioning;
78 62
79 // The color of the focus ring. Currently only used on Linux. 63 // The color of the focus ring. Currently only used on Linux.
80 SkColor focus_ring_color; 64 SkColor focus_ring_color;
81 65
82 // The color of different parts of the scrollbar. Currently only used on 66 // The color of different parts of the scrollbar. Currently only used on
83 // Linux. 67 // Linux.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool plugin_fullscreen_allowed; 130 bool plugin_fullscreen_allowed;
147 131
148 // Whether video-overlay (hole-punching) should be used for the embedded 132 // Whether video-overlay (hole-punching) should be used for the embedded
149 // encrypted video. Currently only used by Android. 133 // encrypted video. Currently only used by Android.
150 bool use_video_overlay_for_embedded_encrypted_video; 134 bool use_video_overlay_for_embedded_encrypted_video;
151 }; 135 };
152 136
153 } // namespace content 137 } // namespace content
154 138
155 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 139 #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