Commit a08630cb authored by ichikawa's avatar ichikawa Committed by Commit bot

Add -[CRWWebViewScrollViewObserver webViewScrollViewWillBeginZooming...]

It will be used in CWVScrollView.

Review-Url: https://codereview.chromium.org/2876693006
Cr-Commit-Position: refs/heads/master@{#471178}
parent d5af7426
......@@ -80,6 +80,12 @@
(CRWWebViewScrollViewProxy*)webViewScrollViewProxy;
- (void)webViewScrollViewDidResetContentSize:
(CRWWebViewScrollViewProxy*)webViewScrollViewProxy;
// The equivalent in UIScrollViewDelegate also takes a parameter (UIView*)view,
// but CRWWebViewScrollViewObserver doesn't expose it for flexibility of future
// implementation.
- (void)webViewScrollViewWillBeginZooming:
(CRWWebViewScrollViewProxy*)webViewScrollViewProxy;
@end
// A protocol to be implemented by objects to listen for changes to the
......
......@@ -213,6 +213,12 @@
[_observers webViewScrollViewDidZoom:self];
}
- (void)scrollViewWillBeginZooming:(UIScrollView*)scrollView
withView:(UIView*)view {
DCHECK_EQ(_scrollView, scrollView);
[_observers webViewScrollViewWillBeginZooming:self];
}
#pragma mark -
+ (NSArray*)scrollViewObserverKeyPaths {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment