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 "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
| 15 #include "ui/base/touch/touch_device.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 namespace blink { | 18 namespace blink { |
18 class WebView; | 19 class WebView; |
19 } | 20 } |
20 | 21 |
21 namespace content { | 22 namespace content { |
22 | 23 |
23 // Map of ISO 15924 four-letter script code to font family. For example, | 24 // Map of ISO 15924 four-letter script code to font family. For example, |
24 // "Arab" to "My Arabic Font". | 25 // "Arab" to "My Arabic Font". |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool text_blobs_enabled; | 125 bool text_blobs_enabled; |
125 bool allow_displaying_insecure_content; | 126 bool allow_displaying_insecure_content; |
126 bool allow_running_insecure_content; | 127 bool allow_running_insecure_content; |
127 bool password_echo_enabled; | 128 bool password_echo_enabled; |
128 bool should_print_backgrounds; | 129 bool should_print_backgrounds; |
129 bool should_clear_document_background; | 130 bool should_clear_document_background; |
130 bool enable_scroll_animator; | 131 bool enable_scroll_animator; |
131 bool css_variables_enabled; | 132 bool css_variables_enabled; |
132 bool region_based_columns_enabled; | 133 bool region_based_columns_enabled; |
133 bool touch_enabled; | 134 bool touch_enabled; |
| 135 // TODO(mustaq): Nuke when the new API is ready |
134 bool device_supports_touch; | 136 bool device_supports_touch; |
| 137 // TODO(mustaq): Nuke when the new API is ready |
135 bool device_supports_mouse; | 138 bool device_supports_mouse; |
136 bool touch_adjustment_enabled; | 139 bool touch_adjustment_enabled; |
137 int pointer_events_max_touch_points; | 140 int pointer_events_max_touch_points; |
| 141 int available_pointer_types; |
| 142 ui::PointerType primary_pointer_type; |
| 143 int available_hover_types; |
| 144 ui::HoverType primary_hover_type; |
138 bool sync_xhr_in_documents_enabled; | 145 bool sync_xhr_in_documents_enabled; |
139 bool deferred_image_decoding_enabled; | 146 bool deferred_image_decoding_enabled; |
140 bool image_color_profiles_enabled; | 147 bool image_color_profiles_enabled; |
141 bool should_respect_image_orientation; | 148 bool should_respect_image_orientation; |
142 int number_of_cpu_cores; | 149 int number_of_cpu_cores; |
143 EditingBehavior editing_behavior; | 150 EditingBehavior editing_behavior; |
144 bool supports_multiple_windows; | 151 bool supports_multiple_windows; |
145 bool viewport_enabled; | 152 bool viewport_enabled; |
146 bool viewport_meta_enabled; | 153 bool viewport_meta_enabled; |
147 bool main_frame_resizes_are_orientation_changes; | 154 bool main_frame_resizes_are_orientation_changes; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // We try to keep the default values the same as the default values in | 201 // We try to keep the default values the same as the default values in |
195 // chrome, except for the cases where it would require lots of extra work for | 202 // chrome, except for the cases where it would require lots of extra work for |
196 // the embedder to use the same default value. | 203 // the embedder to use the same default value. |
197 WebPreferences(); | 204 WebPreferences(); |
198 ~WebPreferences(); | 205 ~WebPreferences(); |
199 }; | 206 }; |
200 | 207 |
201 } // namespace content | 208 } // namespace content |
202 | 209 |
203 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 210 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |