| 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 28 matching lines...) Expand all Loading... |
| 39 bool should_antialias_text; | 39 bool should_antialias_text; |
| 40 | 40 |
| 41 // The level of hinting to use when rendering text. | 41 // The level of hinting to use when rendering text. |
| 42 // Currently only used by Linux. | 42 // Currently only used by Linux. |
| 43 RendererPreferencesHintingEnum hinting; | 43 RendererPreferencesHintingEnum hinting; |
| 44 | 44 |
| 45 // The type of subpixel rendering to use for text. | 45 // The type of subpixel rendering to use for text. |
| 46 // Currently only used by Linux. | 46 // Currently only used by Linux. |
| 47 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; | 47 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; |
| 48 | 48 |
| 49 // The color of the focus ring. Currently only used on Linux. |
| 50 int focus_ring_color_r; |
| 51 int focus_ring_color_g; |
| 52 int focus_ring_color_b; |
| 53 |
| 49 // Browser wants a look at all top level requests | 54 // Browser wants a look at all top level requests |
| 50 bool browser_handles_top_level_requests; | 55 bool browser_handles_top_level_requests; |
| 51 | 56 |
| 52 RendererPreferences() | 57 RendererPreferences() |
| 53 : can_accept_load_drops(true), | 58 : can_accept_load_drops(true), |
| 54 should_antialias_text(true), | 59 should_antialias_text(true), |
| 55 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), | 60 hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT), |
| 56 subpixel_rendering( | 61 subpixel_rendering( |
| 57 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), | 62 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT), |
| 58 browser_handles_top_level_requests(false) { | 63 browser_handles_top_level_requests(false) { |
| 59 } | 64 } |
| 60 }; | 65 }; |
| 61 | 66 |
| 62 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ | 67 #endif // CHROME_COMMON_RENDERER_PREFERENCES_H_ |
| OLD | NEW |