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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // The colors used in selection text. Currently only used on Linux. | 60 // The colors used in selection text. Currently only used on Linux. |
61 SkColor active_selection_bg_color; | 61 SkColor active_selection_bg_color; |
62 SkColor active_selection_fg_color; | 62 SkColor active_selection_fg_color; |
63 SkColor inactive_selection_bg_color; | 63 SkColor inactive_selection_bg_color; |
64 SkColor inactive_selection_fg_color; | 64 SkColor inactive_selection_fg_color; |
65 | 65 |
66 // Browser wants a look at all top level requests | 66 // Browser wants a look at all top level requests |
67 bool browser_handles_top_level_requests; | 67 bool browser_handles_top_level_requests; |
68 | 68 |
| 69 // Cursor blink rate in seconds. |
| 70 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| |
| 71 // from GtkSettings. |
| 72 double caret_blink_interval; |
| 73 |
69 RendererPreferences() | 74 RendererPreferences() |
70 : can_accept_load_drops(true), | 75 : can_accept_load_drops(true), |
71 should_antialias_text(true), | 76 should_antialias_text(true), |
72 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), | 77 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), |
73 subpixel_rendering( | 78 subpixel_rendering( |
74 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), | 79 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), |
75 focus_ring_color(0), | 80 focus_ring_color(0), |
76 thumb_active_color(0), | 81 thumb_active_color(0), |
77 thumb_inactive_color(0), | 82 thumb_inactive_color(0), |
78 track_color(0), | 83 track_color(0), |
79 active_selection_bg_color(0), | 84 active_selection_bg_color(0), |
80 active_selection_fg_color(0), | 85 active_selection_fg_color(0), |
81 inactive_selection_bg_color(0), | 86 inactive_selection_bg_color(0), |
82 inactive_selection_fg_color(0), | 87 inactive_selection_fg_color(0), |
83 browser_handles_top_level_requests(false) { | 88 browser_handles_top_level_requests(false), |
| 89 caret_blink_interval(0) { |
84 } | 90 } |
85 }; | 91 }; |
86 | 92 |
87 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ | 93 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ |
OLD | NEW |