OLD | NEW |
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. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Currently only used by Linux. | 44 // Currently only used by Linux. |
45 RendererPreferencesHintingEnum hinting; | 45 RendererPreferencesHintingEnum hinting; |
46 | 46 |
47 // The type of subpixel rendering to use for text. | 47 // The type of subpixel rendering to use for text. |
48 // Currently only used by Linux. | 48 // Currently only used by Linux. |
49 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; | 49 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; |
50 | 50 |
51 // The color of the focus ring. Currently only used on Linux. | 51 // The color of the focus ring. Currently only used on Linux. |
52 SkColor focus_ring_color; | 52 SkColor focus_ring_color; |
53 | 53 |
54 // Browser wants a look at all top level requests | 54 // Cursor blink rate in seconds. |
| 55 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| |
| 56 // from GtkSettings. |
| 57 double caret_blink_interval; |
| 58 |
| 59 // Browser wants a look at all top level requests. |
55 bool browser_handles_top_level_requests; | 60 bool browser_handles_top_level_requests; |
56 | 61 |
57 RendererPreferences() | 62 RendererPreferences() |
58 : can_accept_load_drops(true), | 63 : can_accept_load_drops(true), |
59 should_antialias_text(true), | 64 should_antialias_text(true), |
60 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), | 65 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), |
61 subpixel_rendering( | 66 subpixel_rendering( |
62 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), | 67 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), |
63 focus_ring_color(0), | 68 focus_ring_color(0), |
| 69 caret_blink_interval(0), |
64 browser_handles_top_level_requests(false) { | 70 browser_handles_top_level_requests(false) { |
65 } | 71 } |
66 }; | 72 }; |
67 | 73 |
68 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ | 74 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ |
OLD | NEW |