 Chromium Code Reviews
 Chromium Code Reviews Issue 2842953002:
  Implement CWVWebView.scrollView.  (Closed)
    
  
    Issue 2842953002:
  Implement CWVWebView.scrollView.  (Closed) 
  | Index: ios/web_view/public/cwv_scroll_view_delegate.h | 
| diff --git a/ios/web_view/public/cwv_scroll_view_delegate.h b/ios/web_view/public/cwv_scroll_view_delegate.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..0d6541606b60632ebd158b2d51623fd9e2f84627 | 
| --- /dev/null | 
| +++ b/ios/web_view/public/cwv_scroll_view_delegate.h | 
| @@ -0,0 +1,26 @@ | 
| +// Copyright 2017 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. | 
| + | 
| +#ifndef IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_ | 
| +#define IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_ | 
| + | 
| +#import <CoreGraphics/CoreGraphics.h> | 
| + | 
| +@class CWVScrollView; | 
| + | 
| +// Delegete for CWVScrollView. Has subset of methods of | 
| +// UIScrollViewDelegate. See the document of | 
| 
michaeldo
2017/05/01 18:49:53
To match above suggestion, I recommend:
These met
 
Hiroshi Ichikawa
2017/05/08 06:52:41
Done.
 | 
| +// UIScrollViewDelegate for the document of each method. | 
| +CWV_EXPORT | 
| +@protocol CWVScrollViewDelegate<NSObject> | 
| +@optional | 
| +- (void)scrollViewWillBeginDragging:(CWVScrollView*)scrollView; | 
| +- (void)scrollViewWillEndDragging:(CWVScrollView*)scrollView | 
| + withVelocity:(CGPoint)velocity | 
| + targetContentOffset:(inout CGPoint*)targetContentOffset; | 
| +- (void)scrollViewDidScroll:(CWVScrollView*)scrollView; | 
| +- (void)scrollViewDidEndDecelerating:(CWVScrollView*)scrollView; | 
| +@end | 
| + | 
| +#endif // IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_ |