| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_H_ | 5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_H_ |
| 6 #define IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_H_ | 6 #define IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_H_ |
| 7 | 7 |
| 8 #import <ChromeWebView/cwv_export.h> | |
| 9 #import <CoreGraphics/CoreGraphics.h> | 8 #import <CoreGraphics/CoreGraphics.h> |
| 10 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
| 11 #import <UIKit/UIKit.h> | 10 #import <UIKit/UIKit.h> |
| 12 | 11 |
| 12 #import "cwv_export.h" |
| 13 |
| 13 @protocol CWVScrollViewDelegate; | 14 @protocol CWVScrollViewDelegate; |
| 14 | 15 |
| 15 // Scroll view inside the web view. This is not a subclass of UIScrollView | 16 // Scroll view inside the web view. This is not a subclass of UIScrollView |
| 16 // because the underlying //ios/web API only exposes a proxy object of the | 17 // because the underlying //ios/web API only exposes a proxy object of the |
| 17 // scroll view, not the raw UIScrollView. | 18 // scroll view, not the raw UIScrollView. |
| 18 // | 19 // |
| 19 // These methods are forwarded to the internal UIScrollView. Please see the | 20 // These methods are forwarded to the internal UIScrollView. Please see the |
| 20 // <UIKit/UIScrollView.h> documentation for details about the following methods. | 21 // <UIKit/UIScrollView.h> documentation for details about the following methods. |
| 21 // | 22 // |
| 22 // TODO(crbug.com/719323): Add nullability annotations. | 23 // TODO(crbug.com/719323): Add nullability annotations. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 44 // rdar://23584409 (not available on Open Radar) | 45 // rdar://23584409 (not available on Open Radar) |
| 45 @property(nonatomic) UIEdgeInsets contentInset; | 46 @property(nonatomic) UIEdgeInsets contentInset; |
| 46 | 47 |
| 47 - (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated; | 48 - (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated; |
| 48 - (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer; | 49 - (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer; |
| 49 - (void)removeGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer; | 50 - (void)removeGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer; |
| 50 | 51 |
| 51 @end | 52 @end |
| 52 | 53 |
| 53 #endif // IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_H_ | 54 #endif // IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_H_ |
| OLD | NEW |