Chromium Code Reviews| 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> |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID | 32 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 enum V8CacheOptions { | 35 enum V8CacheOptions { |
| 36 V8_CACHE_OPTIONS_OFF, | 36 V8_CACHE_OPTIONS_OFF, |
| 37 V8_CACHE_OPTIONS_PARSE, | 37 V8_CACHE_OPTIONS_PARSE, |
| 38 V8_CACHE_OPTIONS_CODE, | 38 V8_CACHE_OPTIONS_CODE, |
| 39 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE | 39 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Bit field values indicating what kind of pointer types are available. These | |
| 43 // enum must match blink::WebSettings::PointerType enums. | |
| 44 enum PointerType { | |
| 45 POINTER_TYPE_NONE = 1, | |
|
jdduke (slow)
2014/11/11 01:17:54
So just to be clear, are we saying there's no bene
mustaq
2014/11/11 15:41:41
Done removing the types from here.
| |
| 46 POINTER_TYPE_FIRST = POINTER_TYPE_NONE, | |
| 47 POINTER_TYPE_COARSE = 2, | |
| 48 POINTER_TYPE_FINE = 4, | |
| 49 POINTER_TYPE_LAST = POINTER_TYPE_FINE | |
| 50 }; | |
| 51 | |
| 52 // Bit field values indicating what kind of pointer types are available. These | |
| 53 // enums must match blink::WebSettings::HoverType enums. | |
| 54 enum HoverType { | |
| 55 HOVER_TYPE_NONE = 1, | |
| 56 HOVER_TYPE_FIRST = HOVER_TYPE_NONE, | |
| 57 // Indicates that the primary pointing system can hover, but it requires a | |
| 58 // significant action on the user’s part. e.g. hover on “long press”. | |
| 59 HOVER_TYPE_ON_DEMAND = 2, | |
| 60 HOVER_TYPE_HOVER = 4, | |
| 61 HOVER_TYPE_LAST = HOVER_TYPE_HOVER | |
| 62 }; | |
| 63 | |
| 42 // The ISO 15924 script code for undetermined script aka Common. It's the | 64 // The ISO 15924 script code for undetermined script aka Common. It's the |
| 43 // default used on WebKit's side to get/set a font setting when no script is | 65 // default used on WebKit's side to get/set a font setting when no script is |
| 44 // specified. | 66 // specified. |
| 45 CONTENT_EXPORT extern const char kCommonScript[]; | 67 CONTENT_EXPORT extern const char kCommonScript[]; |
| 46 | 68 |
| 47 // A struct for managing blink's settings. | 69 // A struct for managing blink's settings. |
| 48 // | 70 // |
| 49 // Adding new values to this class probably involves updating | 71 // Adding new values to this class probably involves updating |
| 50 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 72 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
| 51 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 73 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 bool text_blobs_enabled; | 138 bool text_blobs_enabled; |
| 117 bool allow_displaying_insecure_content; | 139 bool allow_displaying_insecure_content; |
| 118 bool allow_running_insecure_content; | 140 bool allow_running_insecure_content; |
| 119 bool password_echo_enabled; | 141 bool password_echo_enabled; |
| 120 bool should_print_backgrounds; | 142 bool should_print_backgrounds; |
| 121 bool should_clear_document_background; | 143 bool should_clear_document_background; |
| 122 bool enable_scroll_animator; | 144 bool enable_scroll_animator; |
| 123 bool css_variables_enabled; | 145 bool css_variables_enabled; |
| 124 bool region_based_columns_enabled; | 146 bool region_based_columns_enabled; |
| 125 bool touch_enabled; | 147 bool touch_enabled; |
| 148 // TODO(mustaq): Nuke when the new API is ready | |
| 126 bool device_supports_touch; | 149 bool device_supports_touch; |
| 150 // TODO(mustaq): Nuke when the new API is ready | |
| 127 bool device_supports_mouse; | 151 bool device_supports_mouse; |
| 128 bool touch_adjustment_enabled; | 152 bool touch_adjustment_enabled; |
| 129 int pointer_events_max_touch_points; | 153 int pointer_events_max_touch_points; |
| 154 int available_pointer_types; | |
| 155 PointerType primary_pointer_type; | |
| 156 int available_hover_types; | |
| 157 HoverType primary_hover_type; | |
| 130 bool sync_xhr_in_documents_enabled; | 158 bool sync_xhr_in_documents_enabled; |
| 131 bool deferred_image_decoding_enabled; | 159 bool deferred_image_decoding_enabled; |
| 132 bool should_respect_image_orientation; | 160 bool should_respect_image_orientation; |
| 133 int number_of_cpu_cores; | 161 int number_of_cpu_cores; |
| 134 EditingBehavior editing_behavior; | 162 EditingBehavior editing_behavior; |
| 135 bool supports_multiple_windows; | 163 bool supports_multiple_windows; |
| 136 bool viewport_enabled; | 164 bool viewport_enabled; |
| 137 bool viewport_meta_enabled; | 165 bool viewport_meta_enabled; |
| 138 bool main_frame_resizes_are_orientation_changes; | 166 bool main_frame_resizes_are_orientation_changes; |
| 139 bool initialize_at_minimum_page_scale; | 167 bool initialize_at_minimum_page_scale; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 // We try to keep the default values the same as the default values in | 212 // We try to keep the default values the same as the default values in |
| 185 // chrome, except for the cases where it would require lots of extra work for | 213 // chrome, except for the cases where it would require lots of extra work for |
| 186 // the embedder to use the same default value. | 214 // the embedder to use the same default value. |
| 187 WebPreferences(); | 215 WebPreferences(); |
| 188 ~WebPreferences(); | 216 ~WebPreferences(); |
| 189 }; | 217 }; |
| 190 | 218 |
| 191 } // namespace content | 219 } // namespace content |
| 192 | 220 |
| 193 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 221 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |