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

Unified Diff: ui/base/touch/touch_device_win.cc

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Patch for landing, added the mojo bits Created 3 years, 7 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 | « ui/base/touch/touch_device_util.cc ('k') | ui/events/devices/device_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_device_win.cc
diff --git a/ui/base/touch/touch_device_win.cc b/ui/base/touch/touch_device_win.cc
index 3ccbb1b9f2a039c97a02bf4364ee4817b95e2b37..3ff8b53e13f8fdad73391bdcf0a2884a3c8fb822 100644
--- a/ui/base/touch/touch_device_win.cc
+++ b/ui/base/touch/touch_device_win.cc
@@ -17,6 +17,8 @@ bool IsTouchDevicePresent() {
((value & NID_INTEGRATED_TOUCH) || (value & NID_EXTERNAL_TOUCH));
}
+} // namespace
+
// The following method logic is as follow :
// - On versions prior to Windows 8 it will always return POINTER_TYPE_FINE
// and/or POINTER_TYPE_COARSE (if the device has a touch screen).
@@ -65,8 +67,6 @@ int GetAvailableHoverTypes() {
return available_hover_types;
}
-} // namespace
-
TouchScreensAvailability GetTouchScreensAvailability() {
if (!IsTouchDevicePresent())
return TouchScreensAvailability::NONE;
@@ -97,22 +97,4 @@ HoverType GetPrimaryHoverType(int available_hover_types) {
return HOVER_TYPE_NONE;
}
-bool return_available_pointer_and_hover_types_for_testing = false;
-int available_pointer_types_for_testing = POINTER_TYPE_NONE;
-int available_hover_types_for_testing = HOVER_TYPE_NONE;
-
-void SetAvailablePointerAndHoverTypesForTesting(int available_pointer_types,
- int available_hover_types) {
- return_available_pointer_and_hover_types_for_testing = true;
- available_pointer_types_for_testing = available_pointer_types;
- available_hover_types_for_testing = available_hover_types;
-}
-
-std::pair<int, int> GetAvailablePointerAndHoverTypes() {
- if (return_available_pointer_and_hover_types_for_testing)
- return std::make_pair(available_pointer_types_for_testing,
- available_hover_types_for_testing);
- return std::make_pair(GetAvailablePointerTypes(), GetAvailableHoverTypes());
-}
-
} // namespace ui
« no previous file with comments | « ui/base/touch/touch_device_util.cc ('k') | ui/events/devices/device_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698