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

Unified Diff: Source/WebCore/page/Settings.h

Issue 13818030: Added primary input devices setting to blink to allow media queries for hover/pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months 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: Source/WebCore/page/Settings.h
diff --git a/Source/WebCore/page/Settings.h b/Source/WebCore/page/Settings.h
index 4ec541308536e975504e90b2dbdd1d1d66748134..c038e771f143da08d9c3563b603b9ca6e32e1a4a 100644
--- a/Source/WebCore/page/Settings.h
+++ b/Source/WebCore/page/Settings.h
@@ -57,6 +57,18 @@ namespace WebCore {
TextDirectionSubmenuAlwaysIncluded
};
+ // Enum bit flags for primary pointer device to tell Blink what kind of
+ // input the user is primarily using. Note that it's not an exhaustive
+ // list of what is available on the user's system.
+ // e.g. Primary pointer may be set to PointerDeviceMouse even though the
+ // device has a mouse and a touch screen.
+ enum PointerDevice {
+ PointerDeviceUnknown = 0,
+ PointerDeviceMouse = 1,
+ PointerDeviceTouch = 2,
+ PointerDeviceNone = 4
+ };
+
// UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon.
// We need to use -2 and -3 for empty value and deleted value.
struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> {

Powered by Google App Engine
This is Rietveld 408576698