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 // The color of different parts of the scrollbar. Currently only used on |
| 55 // Linux. |
| 56 SkColor thumb_active_color; |
| 57 SkColor thumb_inactive_color; |
| 58 SkColor track_color; |
| 59 |
54 // Browser wants a look at all top level requests | 60 // Browser wants a look at all top level requests |
55 bool browser_handles_top_level_requests; | 61 bool browser_handles_top_level_requests; |
56 | 62 |
57 RendererPreferences() | 63 RendererPreferences() |
58 : can_accept_load_drops(true), | 64 : can_accept_load_drops(true), |
59 should_antialias_text(true), | 65 should_antialias_text(true), |
60 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), | 66 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), |
61 subpixel_rendering( | 67 subpixel_rendering( |
62 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), | 68 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), |
63 focus_ring_color(0), | 69 focus_ring_color(0), |
| 70 thumb_active_color(0), |
| 71 thumb_inactive_color(0), |
| 72 track_color(0), |
64 browser_handles_top_level_requests(false) { | 73 browser_handles_top_level_requests(false) { |
65 } | 74 } |
66 }; | 75 }; |
67 | 76 |
68 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ | 77 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ |
OLD | NEW |