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

Side by Side Diff: ios/web/public/web_state/crw_web_view_proxy.h

Issue 1022463002: [iOS] Upstream files in //ios/chrome/browser/autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « ios/web/public/test/test_web_state.cc ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
7
8 #import <UIKit/UIKit.h>
9
10 #include "ios/web/public/web_view_type.h"
11
12 @class CRWWebViewScrollViewProxy;
13
14 // Provides an interface for embedders to access the WebState's UIWebView in a
15 // limited and controlled manner.
16 @protocol CRWWebViewProxy<NSObject>
17
18 // The UIWebView's bounding rectangle (relative to its parent).
19 @property(readonly, assign) CGRect bounds;
20
21 // A Boolean value indicating whether web content can programmatically display
22 // the keyboard.
23 @property(nonatomic, assign) BOOL keyboardDisplayRequiresUserAction;
24
25 // Gives the embedder access to the UIWebView's UIScrollView in a limited and
26 // controlled manner.
27 @property(nonatomic, readonly) CRWWebViewScrollViewProxy* scrollViewProxy;
28
29 // Returns the webview's gesture recognizers.
30 @property(nonatomic, readonly) NSArray* gestureRecognizers;
31
32 // Retuns the type of the web view this proxy manages.
33 @property(nonatomic, readonly) web::WebViewType webViewType;
34
35 // Register the given insets for the given caller.
36 - (void)registerInsets:(UIEdgeInsets)insets forCaller:(id)caller;
37
38 // Unregister the registered insets for the given caller.
39 - (void)unregisterInsetsForCaller:(id)caller;
40
41 // Wrapper around the addSubview method of the webview.
42 - (void)addSubview:(UIView*)view;
43
44 // Returns YES if it makes sense to search for text right now.
45 - (BOOL)hasSearchableTextContent;
46
47 // Returns the currently visible keyboard accessory, or nil.
48 - (UIView*)getKeyboardAccessory;
49
50 @end
51
52 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/test_web_state.cc ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698