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

Unified Diff: ios/chrome/browser/ui/uikit_ui_util.h

Issue 2709233003: Add haptic feedback for swipe-to-go-back. (Closed)
Patch Set: File is ARC. Created 3 years, 10 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: ios/chrome/browser/ui/uikit_ui_util.h
diff --git a/ios/chrome/browser/ui/uikit_ui_util.h b/ios/chrome/browser/ui/uikit_ui_util.h
index 9179f3e5475174a8e43760ae762e8f59b85607fe..52ff0f47e3c8067ebbdd74428ce3ba1040e39540 100644
--- a/ios/chrome/browser/ui/uikit_ui_util.h
+++ b/ios/chrome/browser/ui/uikit_ui_util.h
@@ -275,4 +275,9 @@ bool IsCompactTablet();
// Returns the current first responder.
UIResponder* GetFirstResponder();
+// On iOS10 and above, trigger a haptic vibration for various types of
+// actions. This is a no-op for devices that do not support haptic feedback.
+void TriggerHapticFeedbackForAction();
+void TriggerHapticFeedbackForSelectionChange();
+
#endif // IOS_CHROME_BROWSER_UI_UIKIT_UI_UTIL_H_
« no previous file with comments | « ios/chrome/browser/ui/side_swipe/side_swipe_navigation_view.mm ('k') | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698