1 // Copyright 2015 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_PUBLIC_WEB_STATE_UI_CRW_CONTENT_VIEW_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTENT_VIEW_H_
8 #import <UIKit/UIKit.h>
10 // UIViews conforming to CRWScrollableContent (i.e. CRWContentViews) are used
11 // to display content within a WebState.
12 @protocol CRWScrollableContent
<NSObject
>
14 // The scroll view used to display the content. If |scrollView| is non-nil,
15 // it will be used to back the CRWContentViewScrollViewProxy and is expected to
16 // be a subview of the CRWContentView.
17 @
property(nonatomic
, retain
, readonly
) UIScrollView
* scrollView
;
19 // Returns YES if content is being displayed in the scroll view.
20 // TODO(stuartmorgan): See if this can be removed from the public interface.
25 // Convenience type for content views.
26 typedef UIView
<CRWScrollableContent
> CRWContentView
;
28 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_CONTENT_VIEW_H_