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

Unified Diff: ios/web/web_state/ui/crw_touch_tracking_recognizer.h

Issue 1048613002: Upstream ios/web/web_state/ui support classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang format Created 5 years, 9 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/web/web_state/ui/crw_touch_tracking_recognizer.h
diff --git a/ios/web/web_state/ui/crw_touch_tracking_recognizer.h b/ios/web/web_state/ui/crw_touch_tracking_recognizer.h
new file mode 100644
index 0000000000000000000000000000000000000000..20d263393c56d25571b59a89e991a0bf687f5ff5
--- /dev/null
+++ b/ios/web/web_state/ui/crw_touch_tracking_recognizer.h
@@ -0,0 +1,31 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_WEB_STATE_UI_CRW_TOUCH_TRACKING_RECOGNIZER_H_
+#define IOS_WEB_WEB_STATE_UI_CRW_TOUCH_TRACKING_RECOGNIZER_H_
+
+#import <UIKit/UIGestureRecognizerSubclass.h>
+
+// Methods implemented by the delegate of the CRWTouchTrackingRecognizer.
+@protocol CRWTouchTrackingDelegate
+
+// Called with YES when touches began, with NO when touches are ended or
+// cancelled.
+- (void)touched:(BOOL)touched;
+
+@end
+
+// UIGestureRecognizer subclass that informs delegate about touches using
+// simplified interface.
+@interface CRWTouchTrackingRecognizer : UIGestureRecognizer
+
+// CRWTouchTrackingRecognizer delegate.
+@property(nonatomic, assign) id<CRWTouchTrackingDelegate> touchTrackingDelegate;
+
+// Designated initializer for CRWTouchTrackingRecognizer.
+- (id)initWithDelegate:(id<CRWTouchTrackingDelegate>)delegate;
+
+@end
+
+#endif // IOS_WEB_WEB_STATE_UI_CRW_TOUCH_TRACKING_RECOGNIZER_H_
« no previous file with comments | « ios/web/web_state/ui/crw_swipe_recognizer_provider.h ('k') | ios/web/web_state/ui/crw_touch_tracking_recognizer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698