OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_WINDOW_GESTURE_OBSERVER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_WINDOW_GESTURE_OBSERVER_H_ |
6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_WINDOW_GESTURE_OBSERVER_H_ | 6 #define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_WINDOW_GESTURE_OBSERVER_H_ |
7 | 7 |
8 #import <UIKit/UIGestureRecognizerSubclass.h> | 8 #import <UIKit/UIGestureRecognizerSubclass.h> |
9 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 // will be determined in this case. | 26 // will be determined in this case. |
27 // The target and action supplied in the -init will never be called in the | 27 // The target and action supplied in the -init will never be called in the |
28 // usual way other regognizers call their action methods, and adding new | 28 // usual way other regognizers call their action methods, and adding new |
29 // target/action pairs will silently no-op. | 29 // target/action pairs will silently no-op. |
30 // If |viewToExclude| is defined, this recognizer will require all gesture | 30 // If |viewToExclude| is defined, this recognizer will require all gesture |
31 // recognizers on it present at initialization time to fail before receiving | 31 // recognizers on it present at initialization time to fail before receiving |
32 // touch events. | 32 // touch events. |
33 | 33 |
34 @interface WindowGestureObserver : UIGestureRecognizer | 34 @interface WindowGestureObserver : UIGestureRecognizer |
35 | 35 |
36 @property(nonatomic, assign) UIView* viewToExclude; | 36 @property(nonatomic, weak) UIView* viewToExclude; |
37 @property(nonatomic, readonly) UIView* touchedView; | 37 @property(nonatomic, weak, readonly) UIView* touchedView; |
38 @end | 38 @end |
39 | 39 |
40 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_WINDOW_GESTURE_OBSERVER_H_ | 40 #endif // IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_WINDOW_GESTURE_OBSERVER_H_ |
OLD | NEW |