| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
| 12 #ifndef CONTENT_COMMON_RENDERER_PREFERENCES_H_ | 12 #ifndef CONTENT_COMMON_RENDERER_PREFERENCES_H_ |
| 13 #define CONTENT_COMMON_RENDERER_PREFERENCES_H_ | 13 #define CONTENT_COMMON_RENDERER_PREFERENCES_H_ |
| 14 #pragma once | 14 #pragma once |
| 15 | 15 |
| 16 #include "content/common/content_export.h" |
| 16 #include "third_party/skia/include/core/SkColor.h" | 17 #include "third_party/skia/include/core/SkColor.h" |
| 17 | 18 |
| 18 enum RendererPreferencesHintingEnum { | 19 enum RendererPreferencesHintingEnum { |
| 19 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0, | 20 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0, |
| 20 RENDERER_PREFERENCES_HINTING_NONE, | 21 RENDERER_PREFERENCES_HINTING_NONE, |
| 21 RENDERER_PREFERENCES_HINTING_SLIGHT, | 22 RENDERER_PREFERENCES_HINTING_SLIGHT, |
| 22 RENDERER_PREFERENCES_HINTING_MEDIUM, | 23 RENDERER_PREFERENCES_HINTING_MEDIUM, |
| 23 RENDERER_PREFERENCES_HINTING_FULL, | 24 RENDERER_PREFERENCES_HINTING_FULL, |
| 24 }; | 25 }; |
| 25 | 26 |
| 26 enum RendererPreferencesSubpixelRenderingEnum { | 27 enum RendererPreferencesSubpixelRenderingEnum { |
| 27 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0, | 28 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0, |
| 28 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE, | 29 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE, |
| 29 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB, | 30 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB, |
| 30 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR, | 31 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR, |
| 31 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB, | 32 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB, |
| 32 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR, | 33 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR, |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 struct RendererPreferences { | 36 struct CONTENT_EXPORT RendererPreferences { |
| 36 RendererPreferences(); | 37 RendererPreferences(); |
| 37 | 38 |
| 38 // Whether the renderer's current browser context accept drops from the OS | 39 // Whether the renderer's current browser context accept drops from the OS |
| 39 // that result in navigations away from the current page. | 40 // that result in navigations away from the current page. |
| 40 bool can_accept_load_drops; | 41 bool can_accept_load_drops; |
| 41 | 42 |
| 42 // Whether text should be antialiased. | 43 // Whether text should be antialiased. |
| 43 // Currently only used by Linux. | 44 // Currently only used by Linux. |
| 44 bool should_antialias_text; | 45 bool should_antialias_text; |
| 45 | 46 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 // Cursor blink rate in seconds. | 73 // Cursor blink rate in seconds. |
| 73 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| | 74 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| |
| 74 // from GtkSettings. | 75 // from GtkSettings. |
| 75 double caret_blink_interval; | 76 double caret_blink_interval; |
| 76 | 77 |
| 77 // Set to false to not send referrers. | 78 // Set to false to not send referrers. |
| 78 bool enable_referrers; | 79 bool enable_referrers; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // CONTENT_COMMON_RENDERER_PREFERENCES_H_ | 82 #endif // CONTENT_COMMON_RENDERER_PREFERENCES_H_ |
| OLD | NEW |