blob: 20d263393c56d25571b59a89e991a0bf687f5ff5 [file] [log] [blame]
// 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.
#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;
// 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;