Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: content/public/common/web_preferences.h

Issue 685153003: Pointer/hover media query support: platform-independent changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, nuked content::{Pointer,Hover}Type Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cc8134bbc806b7f69a6c263b188df54dc3420696 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -12,6 +12,7 @@
#include "base/strings/string16.h"
#include "content/common/content_export.h"
#include "net/base/network_change_notifier.h"
+#include "ui/base/touch/touch_device.h"
#include "url/gurl.h"
namespace blink {
@@ -131,10 +132,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;
+ ui::PointerType primary_pointer_type;
+ int available_hover_types;
+ ui::HoverType primary_hover_type;
bool sync_xhr_in_documents_enabled;
bool deferred_image_decoding_enabled;
bool image_color_profiles_enabled;

Powered by Google App Engine
This is Rietveld 408576698