Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/view_messages.h, browser/browser.cc, etc. | 10 // common/view_messages.h, browser/browser.cc, etc. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 bool can_accept_load_drops; | 45 bool can_accept_load_drops; |
| 46 | 46 |
| 47 // Whether text should be antialiased. | 47 // Whether text should be antialiased. |
| 48 // Currently only used by Linux. | 48 // Currently only used by Linux. |
| 49 bool should_antialias_text; | 49 bool should_antialias_text; |
| 50 | 50 |
| 51 // The level of hinting to use when rendering text. | 51 // The level of hinting to use when rendering text. |
| 52 // Currently only used by Linux. | 52 // Currently only used by Linux. |
| 53 RendererPreferencesHintingEnum hinting; | 53 RendererPreferencesHintingEnum hinting; |
| 54 | 54 |
| 55 // Whether auto hinter should be used. Currently only used by Linux. | |
| 56 bool use_autohinter; | |
| 57 | |
| 58 // Whether embedded bitmap strikes in fonts should be used. | |
| 59 // Current only used by Linux. | |
| 60 bool use_bitmaps; | |
|
jochen (gone - plz use gerrit)
2012/06/26 18:08:31
you will need to add this to content/common/view_m
Xianzhu
2012/06/27 01:38:51
Done. Thanks!
| |
| 61 | |
| 55 // The type of subpixel rendering to use for text. | 62 // The type of subpixel rendering to use for text. |
| 56 // Currently only used by Linux. | 63 // Currently only used by Linux. |
| 57 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; | 64 RendererPreferencesSubpixelRenderingEnum subpixel_rendering; |
| 58 | 65 |
| 59 // Whether subpixel positioning should be used, permitting fractional X | 66 // Whether subpixel positioning should be used, permitting fractional X |
| 60 // positions for glyphs. Currently only used by Linux. | 67 // positions for glyphs. Currently only used by Linux. |
| 61 bool use_subpixel_positioning; | 68 bool use_subpixel_positioning; |
| 62 | 69 |
| 63 // The color of the focus ring. Currently only used on Linux. | 70 // The color of the focus ring. Currently only used on Linux. |
| 64 SkColor focus_ring_color; | 71 SkColor focus_ring_color; |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 93 double default_zoom_level; | 100 double default_zoom_level; |
| 94 | 101 |
| 95 // The user agent given to WebKit when it requests one and the user agent is | 102 // The user agent given to WebKit when it requests one and the user agent is |
| 96 // being overridden for the current navigation. | 103 // being overridden for the current navigation. |
| 97 std::string user_agent_override; | 104 std::string user_agent_override; |
| 98 }; | 105 }; |
| 99 | 106 |
| 100 } // namespace content | 107 } // namespace content |
| 101 | 108 |
| 102 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ | 109 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ |
| OLD | NEW |