Fix breakages in https://codereview.chromium.org/1155713003/
[chromium-blink-merge.git] / ios / web / web_state / crw_web_view_proxy_impl.h
blob7a8386cc0e9bdf503301479cc329eba1cdd41cd0
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_WEB_STATE_CRW_WEB_VIEW_PROXY_IMPL_H_
6 #define IOS_WEB_WEB_STATE_CRW_WEB_VIEW_PROXY_IMPL_H_
8 #import <UIKit/UIKit.h>
10 #include "ios/web/public/web_state/crw_web_view_proxy.h"
12 @class CRWWebController;
14 @interface CRWWebViewProxyImpl : NSObject<CRWWebViewProxy>
16 // TODO(justincohen): It would be better if we could use something like a
17 // ScrollPositionController instead of passing in all of web controller.
18 // crbug.com/227744
19 // Init with a weak reference of web controller, used for passing thru calls.
20 - (instancetype)initWithWebController:(CRWWebController*)webController;
22 // Used by the CRWWebController to set the web view to be managed.
23 // Also sets the UIScrollView to be managed inside the WebViewScrollViewProxy.
24 - (void)setWebView:(UIView*)webView scrollView:(UIScrollView*)scrollView;
26 @end
28 #endif // IOS_WEB_WEB_STATE_CRW_WEB_VIEW_PROXY_IMPL_H_