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

Unified Diff: ios/web_view/public/cwv_scroll_view_delegate.h

Issue 2842953002: Implement CWVWebView.scrollView. (Closed)
Patch Set: Apply review comments. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698