OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "ui/base/touch/touch_device.h" | 15 #include "ui/base/touch/touch_device.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 class WebView; | 19 class WebView; |
| 20 typedef unsigned WebColor; |
20 } | 21 } |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 | 24 |
24 // Map of ISO 15924 four-letter script code to font family. For example, | 25 // Map of ISO 15924 four-letter script code to font family. For example, |
25 // "Arab" to "My Arabic Font". | 26 // "Arab" to "My Arabic Font". |
26 typedef std::map<std::string, base::string16> ScriptFontFamilyMap; | 27 typedef std::map<std::string, base::string16> ScriptFontFamilyMap; |
27 | 28 |
28 enum EditingBehavior { | 29 enum EditingBehavior { |
29 EDITING_BEHAVIOR_MAC, | 30 EDITING_BEHAVIOR_MAC, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 int available_pointer_types; | 171 int available_pointer_types; |
171 ui::PointerType primary_pointer_type; | 172 ui::PointerType primary_pointer_type; |
172 int available_hover_types; | 173 int available_hover_types; |
173 ui::HoverType primary_hover_type; | 174 ui::HoverType primary_hover_type; |
174 bool sync_xhr_in_documents_enabled; | 175 bool sync_xhr_in_documents_enabled; |
175 bool image_color_profiles_enabled; | 176 bool image_color_profiles_enabled; |
176 bool should_respect_image_orientation; | 177 bool should_respect_image_orientation; |
177 int number_of_cpu_cores; | 178 int number_of_cpu_cores; |
178 EditingBehavior editing_behavior; | 179 EditingBehavior editing_behavior; |
179 bool supports_multiple_windows; | 180 bool supports_multiple_windows; |
| 181 |
| 182 // The color to paint before initial style is applied. This is modified by |
| 183 // downstream products (eg Opera TV) to avoid white screen flashes when |
| 184 // opening new tabs. |
| 185 blink::WebColor default_background_color; |
| 186 |
180 bool viewport_enabled; | 187 bool viewport_enabled; |
181 bool viewport_meta_enabled; | 188 bool viewport_meta_enabled; |
182 bool shrinks_viewport_contents_to_fit; | 189 bool shrinks_viewport_contents_to_fit; |
183 ViewportStyle viewport_style; | 190 ViewportStyle viewport_style; |
184 bool always_show_context_menu_on_touch; | 191 bool always_show_context_menu_on_touch; |
185 bool main_frame_resizes_are_orientation_changes; | 192 bool main_frame_resizes_are_orientation_changes; |
186 bool initialize_at_minimum_page_scale; | 193 bool initialize_at_minimum_page_scale; |
187 bool smart_insert_delete_enabled; | 194 bool smart_insert_delete_enabled; |
188 bool spatial_navigation_enabled; | 195 bool spatial_navigation_enabled; |
189 int pinch_overlay_scrollbar_thickness; | 196 int pinch_overlay_scrollbar_thickness; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // chrome, except for the cases where it would require lots of extra work for | 262 // chrome, except for the cases where it would require lots of extra work for |
256 // the embedder to use the same default value. | 263 // the embedder to use the same default value. |
257 WebPreferences(); | 264 WebPreferences(); |
258 WebPreferences(const WebPreferences& other); | 265 WebPreferences(const WebPreferences& other); |
259 ~WebPreferences(); | 266 ~WebPreferences(); |
260 }; | 267 }; |
261 | 268 |
262 } // namespace content | 269 } // namespace content |
263 | 270 |
264 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 271 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |