OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_UTIL_RELAXED_BOUNDS_CONSTRAINTS_HITTEST_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_UTIL_RELAXED_BOUNDS_CONSTRAINTS_HITTEST_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 // This protocol is meant to be implemented by subclasses of UIView. It exposes |
| 11 // a property |hitTestBoundsContraintRelaxed| that when set to YES, inform that |
| 12 // bounds constraints on the hitTest: method shouldn't be taken into account. |
| 13 // The implementer of that protocol must override the hitTest: method and check |
| 14 // for that property. |
| 15 @protocol RelaxedBoundsConstraintsHitTestSupport<NSObject> |
| 16 |
| 17 @optional |
| 18 @property(nonatomic, assign) BOOL hitTestBoundsContraintRelaxed; |
| 19 |
| 20 @end |
| 21 |
| 22 #endif // IOS_CHROME_BROWSER_UI_UTIL_RELAXED_BOUNDS_CONSTRAINTS_HITTEST_H_ |
OLD | NEW |