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"
11 #include "ios/web/public/web_state/ui/crw_content_view.h"
13 @
class CRWWebController
;
15 // TODO(kkhorimoto): Rename class to CRWContentViewProxyImpl.
16 @interface CRWWebViewProxyImpl
: NSObject
<CRWWebViewProxy
>
18 // Used by CRWWebController to set the content view being managed.
19 // |contentView|'s scroll view property will be managed by the
20 // WebViewScrollViewProxy.
21 @
property(nonatomic
, weak
) CRWContentView
* contentView
;
23 // TODO(justincohen): It would be better if we could use something like a
24 // ScrollPositionController instead of passing in all of web controller.
26 // Init with a weak reference of web controller, used for passing thru calls.
27 - (instancetype
)initWithWebController
:(CRWWebController
*)webController
;
31 #endif // IOS_WEB_WEB_STATE_CRW_WEB_VIEW_PROXY_IMPL_H_