Commit aaf8ef67 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS][web] Group public methods

This CL puts all the public methods together.
It also moves webState, webStateImpl and scrollPosition to private
properties.

Bug: 938255
Change-Id: Ic2b9870da254f538c201893dad87a99f4d18c216
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1503323
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638099}
parent edfa68c9
...@@ -43,7 +43,6 @@ class GURL; ...@@ -43,7 +43,6 @@ class GURL;
namespace web { namespace web {
class NavigationItem; class NavigationItem;
class WebState;
class WebStateImpl; class WebStateImpl;
} }
...@@ -65,8 +64,6 @@ class WebStateImpl; ...@@ -65,8 +64,6 @@ class WebStateImpl;
@property(nonatomic, weak) id<CRWNativeContentProvider> nativeProvider; @property(nonatomic, weak) id<CRWNativeContentProvider> nativeProvider;
@property(nonatomic, weak) id<CRWSwipeRecognizerProvider> @property(nonatomic, weak) id<CRWSwipeRecognizerProvider>
swipeRecognizerProvider; swipeRecognizerProvider;
@property(nonatomic, readonly) web::WebState* webState;
@property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
// The container view used to display content. If the view has been purged due // The container view used to display content. If the view has been purged due
// to low memory, this will recreate it. // to low memory, this will recreate it.
...@@ -90,9 +87,6 @@ class WebStateImpl; ...@@ -90,9 +87,6 @@ class WebStateImpl;
// (nothing loaded) and 1.0 (fully loaded). // (nothing loaded) and 1.0 (fully loaded).
@property(nonatomic, readonly) double loadingProgress; @property(nonatomic, readonly) double loadingProgress;
// Returns the x, y offset the content has been scrolled.
@property(nonatomic, readonly) CGPoint scrollPosition;
// YES if the web process backing WebView is believed to currently be crashed. // YES if the web process backing WebView is believed to currently be crashed.
@property(nonatomic, assign, getter=isWebProcessCrashed) BOOL webProcessCrashed; @property(nonatomic, assign, getter=isWebProcessCrashed) BOOL webProcessCrashed;
...@@ -154,9 +148,6 @@ class WebStateImpl; ...@@ -154,9 +148,6 @@ class WebStateImpl;
// navigation. |isRendererInitiated| is NO for browser-initiated navigation. // navigation. |isRendererInitiated| is NO for browser-initiated navigation.
- (void)reloadWithRendererInitiatedNavigation:(BOOL)isRendererInitiated; - (void)reloadWithRendererInitiatedNavigation:(BOOL)isRendererInitiated;
// Stops web view loading.
- (void)stopLoading;
// Loads the URL indicated by current session state. // Loads the URL indicated by current session state.
- (void)loadCurrentURLWithRendererInitiatedNavigation:(BOOL)rendererInitiated; - (void)loadCurrentURLWithRendererInitiatedNavigation:(BOOL)rendererInitiated;
...@@ -235,6 +226,9 @@ class WebStateImpl; ...@@ -235,6 +226,9 @@ class WebStateImpl;
@interface CRWWebController (UsedOnlyForTesting) // Testing or internal API. @interface CRWWebController (UsedOnlyForTesting) // Testing or internal API.
@property(nonatomic, readonly) web::WebState* webState;
@property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
// Returns whether the user is interacting with the page. // Returns whether the user is interacting with the page.
@property(nonatomic, readonly) BOOL userIsInteracting; @property(nonatomic, readonly) BOOL userIsInteracting;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment