| Index: content/public/common/web_preferences.h
|
| diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
|
| index 057174fef620e0c1da1cf6613f009d12b26ab57a..12a765529529e743814b29d759d106e3d10f0e7e 100644
|
| --- a/content/public/common/web_preferences.h
|
| +++ b/content/public/common/web_preferences.h
|
| @@ -47,6 +47,28 @@ enum V8ScriptStreamingMode {
|
| V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING
|
| };
|
|
|
| +// Bit field values indicating what kind of pointer types are available. These
|
| +// enum must match blink::WebSettings::PointerType enums.
|
| +enum PointerType {
|
| + POINTER_TYPE_NONE = 1,
|
| + POINTER_TYPE_FIRST = POINTER_TYPE_NONE,
|
| + POINTER_TYPE_COARSE = 2,
|
| + POINTER_TYPE_FINE = 4,
|
| + POINTER_TYPE_LAST = POINTER_TYPE_FINE
|
| +};
|
| +
|
| +// Bit field values indicating what kind of pointer types are available. These
|
| +// enums must match blink::WebSettings::HoverType enums.
|
| +enum HoverType {
|
| + HOVER_TYPE_NONE = 1,
|
| + HOVER_TYPE_FIRST = HOVER_TYPE_NONE,
|
| + // Indicates that the primary pointing system can hover, but it requires a
|
| + // significant action on the user’s part. e.g. hover on “long press”.
|
| + HOVER_TYPE_ON_DEMAND = 2,
|
| + HOVER_TYPE_HOVER = 4,
|
| + HOVER_TYPE_LAST = HOVER_TYPE_HOVER
|
| +};
|
| +
|
| // The ISO 15924 script code for undetermined script aka Common. It's the
|
| // default used on WebKit's side to get/set a font setting when no script is
|
| // specified.
|
| @@ -131,10 +153,16 @@ struct CONTENT_EXPORT WebPreferences {
|
| bool css_variables_enabled;
|
| bool region_based_columns_enabled;
|
| bool touch_enabled;
|
| + // TODO(mustaq): Nuke when the new API is ready
|
| bool device_supports_touch;
|
| + // TODO(mustaq): Nuke when the new API is ready
|
| bool device_supports_mouse;
|
| bool touch_adjustment_enabled;
|
| int pointer_events_max_touch_points;
|
| + int available_pointer_types;
|
| + PointerType primary_pointer_type;
|
| + int available_hover_types;
|
| + HoverType primary_hover_type;
|
| bool sync_xhr_in_documents_enabled;
|
| bool deferred_image_decoding_enabled;
|
| bool image_color_profiles_enabled;
|
|
|