Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: ios/web_view/public/cwv_scroll_view_delegate.h

Issue 2876753002: Add more methods to CWVScrollView and CWVScrollViewDelegate. (Closed)
Patch Set: Add more methods. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web_view/public/cwv_scroll_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DELEGATE_H_ 5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_
6 #define IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_ 6 #define IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_
7 7
8 #import <CoreGraphics/CoreGraphics.h> 8 #import <CoreGraphics/CoreGraphics.h>
9 9
10 @class CWVScrollView; 10 @class CWVScrollView;
11 11
12 // Delegete for CWVScrollView. 12 // Delegete for CWVScrollView.
13 // 13 //
14 // These methods are forwarded from the internal UIScrollViewDelegate. Please 14 // These methods are forwarded from the internal UIScrollViewDelegate. Please
15 // see the <UIKit/UIScrollViewDelegate.h> documentation for details about the 15 // see the <UIKit/UIScrollViewDelegate.h> documentation for details about the
16 // following methods. 16 // following methods.
17 CWV_EXPORT 17 CWV_EXPORT
18 @protocol CWVScrollViewDelegate<NSObject> 18 @protocol CWVScrollViewDelegate<NSObject>
19 @optional 19 @optional
20 - (void)scrollViewWillBeginDragging:(CWVScrollView*)scrollView; 20 - (void)scrollViewWillBeginDragging:(CWVScrollView*)scrollView;
21 - (void)scrollViewWillEndDragging:(CWVScrollView*)scrollView 21 - (void)scrollViewWillEndDragging:(CWVScrollView*)scrollView
22 withVelocity:(CGPoint)velocity 22 withVelocity:(CGPoint)velocity
23 targetContentOffset:(inout CGPoint*)targetContentOffset; 23 targetContentOffset:(inout CGPoint*)targetContentOffset;
24 - (void)scrollViewDidScroll:(CWVScrollView*)scrollView; 24 - (void)scrollViewDidScroll:(CWVScrollView*)scrollView;
25 - (void)scrollViewDidEndDecelerating:(CWVScrollView*)scrollView; 25 - (void)scrollViewDidEndDecelerating:(CWVScrollView*)scrollView;
26
27 // The equivalent in UIScrollViewDelegate also takes a parameter (UIView*)view,
28 // but CWVScrollViewDelegate doesn't expose it for flexibility of future
29 // implementation.
30 - (void)scrollViewWillBeginZooming:(CWVScrollView*)webViewScrollViewProxy;
26 @end 31 @end
27 32
28 #endif // IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_ 33 #endif // IOS_WEB_VIEW_PUBLIC_CWV_SCROLL_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web_view/public/cwv_scroll_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698