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

Unified Diff: ios/web/public/web_state/crw_web_view_proxy.h

Issue 2752113002: Moved WebView(ScrollView)Proxy files to ui subdirectory. (Closed)
Patch Set: Created 3 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
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
deleted file mode 100644
index 81125e7cc988ddb31bbdd035f6c726a828579976..0000000000000000000000000000000000000000
--- a/ios/web/public/web_state/crw_web_view_proxy.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// 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>
-
-
-@class CRWWebViewScrollViewProxy;
-
-// Provides an interface for embedders to access the WebState's web view in a
-// limited and controlled manner.
-// TODO(crbug.com/546152): rename protocol to CRWContentViewProxy.
-@protocol CRWWebViewProxy<NSObject>
-
-// The web view's bounding rectangle (relative to its parent).
-@property(readonly, assign) CGRect bounds;
-
-// The web view's frame rectangle.
-@property(readonly, assign) CGRect frame;
-
-// Adds a top padding to content view. Implementations of this protocol can
-// implement this method using UIScrollView.contentInset (where applicable) or
-// via resizing a subview's frame. Changing this property may impact performance
-// if implementation resizes its subview. Can be used as a workaround for
-// WKWebView bug, where UIScrollView.content inset does not work
-// (rdar://23584409). TODO(crbug.com/569349) remove this property once radar is
-// fixed.
-@property(nonatomic, assign) CGFloat topContentPadding;
-
-// Gives the embedder access to the web view's UIScrollView in a limited and
-// controlled manner.
-@property(nonatomic, readonly) CRWWebViewScrollViewProxy* scrollViewProxy;
-
-// Returns the webview's gesture recognizers.
-@property(nonatomic, readonly) NSArray* gestureRecognizers;
-
-// Adds a webview gesture recognizers.
-- (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer;
-
-// Removes a webview gesture recognizers.
-- (void)removeGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer;
-
-// Whether or not the content view should use the content inset when setting
-// |topContentPadding|. Implementations may or may not respect the setting
-// of this property.
-@property(nonatomic, assign) BOOL shouldUseInsetForTopPadding;
-
-// 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*)keyboardAccessory;
-
-// Returns the currently visible keyboard input assistant item, or nil. Only
-// valid on iOS 9 or above.
-#if defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0
-- (UITextInputAssistantItem*)inputAssistantItem;
-#endif
-
-// Wrapper around the becomeFirstResponder method of the webview.
-- (BOOL)becomeFirstResponder;
-
-@end
-
-#endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_
« no previous file with comments | « ios/web/public/test/web_view_interaction_test_util.mm ('k') | ios/web/public/web_state/crw_web_view_scroll_view_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698