Infobar material design refresh: bg color
[chromium-blink-merge.git] / ios / web / web_state / ui / crw_touch_tracking_recognizer.h
blob20d263393c56d25571b59a89e991a0bf687f5ff5
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_TOUCH_TRACKING_RECOGNIZER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_TOUCH_TRACKING_RECOGNIZER_H_
8 #import <UIKit/UIGestureRecognizerSubclass.h>
10 // Methods implemented by the delegate of the CRWTouchTrackingRecognizer.
11 @protocol CRWTouchTrackingDelegate
13 // Called with YES when touches began, with NO when touches are ended or
14 // cancelled.
15 - (void)touched:(BOOL)touched;
17 @end
19 // UIGestureRecognizer subclass that informs delegate about touches using
20 // simplified interface.
21 @interface CRWTouchTrackingRecognizer : UIGestureRecognizer
23 // CRWTouchTrackingRecognizer delegate.
24 @property(nonatomic, assign) id<CRWTouchTrackingDelegate> touchTrackingDelegate;
26 // Designated initializer for CRWTouchTrackingRecognizer.
27 - (id)initWithDelegate:(id<CRWTouchTrackingDelegate>)delegate;
29 @end
31 #endif // IOS_WEB_WEB_STATE_UI_CRW_TOUCH_TRACKING_RECOGNIZER_H_