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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/crw_web_view_proxy.h
diff --git a/ios/web/public/web_state/crw_web_view_proxy.h b/ios/web/public/web_state/crw_web_view_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..784df4a9dfb0d19e13b952cd27d458a6ef5c099a
--- /dev/null
+++ b/ios/web/public/web_state/crw_web_view_proxy.h
@@ -0,0 +1,52 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
+#define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
+
+#import <UIKit/UIKit.h>
+
+#include "ios/web/public/web_view_type.h"
+
+@class CRWWebViewScrollViewProxy;
+
+// Provides an interface for embedders to access the WebState's UIWebView in a
+// limited and controlled manner.
+@protocol CRWWebViewProxy<NSObject>
+
+// The UIWebView's bounding rectangle (relative to its parent).
+@property(readonly, assign) CGRect bounds;
+
+// A Boolean value indicating whether web content can programmatically display
+// the keyboard.
+@property(nonatomic, assign) BOOL keyboardDisplayRequiresUserAction;
+
+// Gives the embedder access to the UIWebView's UIScrollView in a limited and
+// controlled manner.
+@property(nonatomic, readonly) CRWWebViewScrollViewProxy* scrollViewProxy;
+
+// Returns the webview's gesture recognizers.
+@property(nonatomic, readonly) NSArray* gestureRecognizers;
+
+// Retuns the type of the web view this proxy manages.
+@property(nonatomic, readonly) web::WebViewType webViewType;
+
+// Register the given insets for the given caller.
+- (void)registerInsets:(UIEdgeInsets)insets forCaller:(id)caller;
+
+// Unregister the registered insets for the given caller.
+- (void)unregisterInsetsForCaller:(id)caller;
+
+// Wrapper around the addSubview method of the webview.
+- (void)addSubview:(UIView*)view;
+
+// Returns YES if it makes sense to search for text right now.
+- (BOOL)hasSearchableTextContent;
+
+// Returns the currently visible keyboard accessory, or nil.
+- (UIView*)getKeyboardAccessory;
+
+@end
+
+#endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
« 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