OLD | NEW |
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. |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Whether the renderer's current browser context accept drops from the OS | 41 // Whether the renderer's current browser context accept drops from the OS |
42 // that result in navigations away from the current page. | 42 // that result in navigations away from the current page. |
43 bool can_accept_load_drops; | 43 bool can_accept_load_drops; |
44 | 44 |
45 // Whether text should be antialiased. | 45 // Whether text should be antialiased. |
46 // Currently only used by Linux. | 46 // Currently only used by Linux. |
47 bool should_antialias_text; | 47 bool should_antialias_text; |
48 | 48 |
49 // The level of hinting to use when rendering text. | 49 // The level of hinting to use when rendering text. |
50 // Currently only used by Linux. | 50 // Currently only used by Linux and Android. |
51 RendererPreferencesHintingEnum hinting; | 51 RendererPreferencesHintingEnum hinting; |
52 | 52 |
53 // The type of subpixel rendering to use for text. | 53 // The type of subpixel rendering to use for text. |
54 // Currently only used by Linux. | 54 // Currently only used by Linux and Android. |
55 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; | 55 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; |
56 | 56 |
57 // Whether subpixel positioning should be used, permitting fractional X | 57 // Whether subpixel positioning should be used, permitting fractional |
58 // positions for glyphs. Currently only used by Linux. | 58 // positions for glyphs. Currently only used by Linux and Android. |
59 bool use_subpixel_positioning; | 59 bool use_subpixel_positioning; |
60 | 60 |
61 // The color of the focus ring. Currently only used on Linux. | 61 // The color of the focus ring. Currently only used on Linux. |
62 SkColor focus_ring_color; | 62 SkColor focus_ring_color; |
63 | 63 |
64 // The color of different parts of the scrollbar. Currently only used on | 64 // The color of different parts of the scrollbar. Currently only used on |
65 // Linux. | 65 // Linux. |
66 SkColor thumb_active_color; | 66 SkColor thumb_active_color; |
67 SkColor thumb_inactive_color; | 67 SkColor thumb_inactive_color; |
68 SkColor track_color; | 68 SkColor track_color; |
(...skipping 18 matching lines...) Expand all Loading... |
87 // Set to false to not send referrers. | 87 // Set to false to not send referrers. |
88 bool enable_referrers; | 88 bool enable_referrers; |
89 | 89 |
90 // Default page zoom level. | 90 // Default page zoom level. |
91 double default_zoom_level; | 91 double default_zoom_level; |
92 }; | 92 }; |
93 | 93 |
94 } // namespace content | 94 } // namespace content |
95 | 95 |
96 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ | 96 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ |
OLD | NEW |