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

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: Review fixes 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
« no previous file with comments | « Source/WebCore/css/MediaQueryEvaluator.cpp ('k') | Source/WebCore/page/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/Settings.h
diff --git a/Source/WebCore/page/Settings.h b/Source/WebCore/page/Settings.h
index 160d4c1c1fdf0554cca314faf85f718313a4da21..9a658514825f70957e542df08dd50fb471c65d04 100644
--- a/Source/WebCore/page/Settings.h
+++ b/Source/WebCore/page/Settings.h
@@ -57,6 +57,21 @@ 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 - rather, it's available
+ // pointer devices that we expect the user to use.
+ // e.g. Primary pointer may be set to PointerDeviceMouse even though the
+ // device has a mouse and a touch screen.
+ // Note: PointerDeviceNone is mutually exclusive with other flags
+ // PointerDeviceUnknown is not actually a flag
+ 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> {
« no previous file with comments | « Source/WebCore/css/MediaQueryEvaluator.cpp ('k') | Source/WebCore/page/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698