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

Unified Diff: ui/base/touch/touch_device.h

Issue 2301073002: Optimization: avoid making 4 JNI calls to get touch device attributes. (Closed)
Patch Set: Fix windows compile issues Created 4 years, 3 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/android/java/src/org/chromium/ui/base/TouchDevice.java ('k') | ui/base/touch/touch_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_device.h
diff --git a/ui/base/touch/touch_device.h b/ui/base/touch/touch_device.h
index e6c715616d3ffde5bc258eb1bd70e7dad8be15c9..0552fab1bcc27bb5bcac7a92660427a4e987ae2e 100644
--- a/ui/base/touch/touch_device.h
+++ b/ui/base/touch/touch_device.h
@@ -5,6 +5,8 @@
#ifndef UI_BASE_TOUCH_TOUCH_DEVICE_H_
#define UI_BASE_TOUCH_TOUCH_DEVICE_H_
+#include <tuple>
+
#include "build/build_config.h"
#include "ui/base/ui_base_export.h"
@@ -60,10 +62,9 @@ enum HoverType {
HOVER_TYPE_LAST = HOVER_TYPE_HOVER
};
-UI_BASE_EXPORT int GetAvailablePointerTypes();
-UI_BASE_EXPORT PointerType GetPrimaryPointerType();
-UI_BASE_EXPORT int GetAvailableHoverTypes();
-UI_BASE_EXPORT HoverType GetPrimaryHoverType();
+UI_BASE_EXPORT std::pair<int, int> GetAvailablePointerAndHoverTypes();
+UI_BASE_EXPORT PointerType GetPrimaryPointerType(int available_pointer_types);
+UI_BASE_EXPORT HoverType GetPrimaryHoverType(int available_hover_types);
} // namespace ui
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/TouchDevice.java ('k') | ui/base/touch/touch_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698