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

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

Issue 685153003: Pointer/hover media query support: platform-independent changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed enum naming style 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.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index dbe16297f909d94e278025759ef83b34b2edd076..5ee92a4dfde712d99c48d609054b7289e0d8437f 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::POINTER_TYPE_NONE,
+ WebSettings::PointerTypeNone);
+COMPILE_ASSERT_MATCHING_ENUMS(ui::POINTER_TYPE_COARSE,
+ WebSettings::PointerTypeCoarse);
+COMPILE_ASSERT_MATCHING_ENUMS(ui::POINTER_TYPE_FINE,
+ WebSettings::PointerTypeFine);
+
+COMPILE_ASSERT_MATCHING_ENUMS(ui::HOVER_TYPE_NONE,
+ WebSettings::HoverTypeNone);
+COMPILE_ASSERT_MATCHING_ENUMS(ui::HOVER_TYPE_ON_DEMAND,
+ WebSettings::HoverTypeOnDemand);
+COMPILE_ASSERT_MATCHING_ENUMS(ui::HOVER_TYPE_HOVER,
+ 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::POINTER_TYPE_NONE),
+ available_hover_types(0),
+ primary_hover_type(ui::HOVER_TYPE_NONE),
sync_xhr_in_documents_enabled(true),
deferred_image_decoding_enabled(false),
image_color_profiles_enabled(false),

Powered by Google App Engine
This is Rietveld 408576698