OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. |
11 | 11 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 SkColor thumb_active_color; | 56 SkColor thumb_active_color; |
57 SkColor thumb_inactive_color; | 57 SkColor thumb_inactive_color; |
58 SkColor track_color; | 58 SkColor track_color; |
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. This is set to true for |
| 67 // external tabs and pinned tabs. |
67 bool browser_handles_top_level_requests; | 68 bool browser_handles_top_level_requests; |
68 | 69 |
69 // Cursor blink rate in seconds. | 70 // Cursor blink rate in seconds. |
70 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| | 71 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| |
71 // from GtkSettings. | 72 // from GtkSettings. |
72 double caret_blink_interval; | 73 double caret_blink_interval; |
73 | 74 |
74 RendererPreferences() | 75 RendererPreferences() |
75 : can_accept_load_drops(true), | 76 : can_accept_load_drops(true), |
76 should_antialias_text(true), | 77 should_antialias_text(true), |
77 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), | 78 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), |
78 subpixel_rendering( | 79 subpixel_rendering( |
79 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), | 80 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), |
80 focus_ring_color(0), | 81 focus_ring_color(0), |
81 thumb_active_color(0), | 82 thumb_active_color(0), |
82 thumb_inactive_color(0), | 83 thumb_inactive_color(0), |
83 track_color(0), | 84 track_color(0), |
84 active_selection_bg_color(0), | 85 active_selection_bg_color(0), |
85 active_selection_fg_color(0), | 86 active_selection_fg_color(0), |
86 inactive_selection_bg_color(0), | 87 inactive_selection_bg_color(0), |
87 inactive_selection_fg_color(0), | 88 inactive_selection_fg_color(0), |
88 browser_handles_top_level_requests(false), | 89 browser_handles_top_level_requests(false), |
89 caret_blink_interval(0) { | 90 caret_blink_interval(0) { |
90 } | 91 } |
91 }; | 92 }; |
92 | 93 |
93 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ | 94 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ |
OLD | NEW |