Chromium Code Reviews| Index: content/public/common/web_preferences.cc |
| diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc |
| index dbe16297f909d94e278025759ef83b34b2edd076..bdbf3dd53838a55e462fcf9254dab44f2c35c29b 100644 |
| --- a/content/public/common/web_preferences.cc |
| +++ b/content/public/common/web_preferences.cc |
| @@ -52,6 +52,20 @@ COMPILE_ASSERT_MATCHING_ENUMS( |
| V8_SCRIPT_STREAMING_MODE_LAST, |
| WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking); |
| +COMPILE_ASSERT_MATCHING_ENUMS(ui::PointerTypeNone, |
|
mustaq
2014/11/11 15:41:41
Not sure what's the best place for these checks. A
|
| + WebSettings::PointerTypeNone); |
| +COMPILE_ASSERT_MATCHING_ENUMS(ui::PointerTypeCoarse, |
| + WebSettings::PointerTypeCoarse); |
| +COMPILE_ASSERT_MATCHING_ENUMS(ui::PointerTypeFine, |
| + WebSettings::PointerTypeFine); |
| + |
| +COMPILE_ASSERT_MATCHING_ENUMS(ui::HoverTypeNone, |
| + WebSettings::HoverTypeNone); |
| +COMPILE_ASSERT_MATCHING_ENUMS(ui::HoverTypeOnDemand, |
| + WebSettings::HoverTypeOnDemand); |
| +COMPILE_ASSERT_MATCHING_ENUMS(ui::HoverTypeHover, |
| + WebSettings::HoverTypeHover); |
| + |
| WebPreferences::WebPreferences() |
| : default_font_size(16), |
| default_fixed_font_size(13), |
| @@ -119,6 +133,10 @@ WebPreferences::WebPreferences() |
| device_supports_mouse(true), |
| touch_adjustment_enabled(true), |
| pointer_events_max_touch_points(0), |
| + available_pointer_types(0), |
| + primary_pointer_type(ui::PointerTypeNone), |
| + available_hover_types(0), |
| + primary_hover_type(ui::HoverTypeNone), |
| sync_xhr_in_documents_enabled(true), |
| deferred_image_decoding_enabled(false), |
| image_color_profiles_enabled(false), |