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

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: 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.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),

Powered by Google App Engine
This is Rietveld 408576698