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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.h

Issue 2509493003: Revert of [ios] Removed back-forward navigation API from CRWWebController. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/web/net/crw_request_tracker_delegate.h" 10 #import "ios/web/net/crw_request_tracker_delegate.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // next creation. 95 // next creation.
96 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay; 96 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay;
97 97
98 // Returns the current page loading phase. 98 // Returns the current page loading phase.
99 @property(nonatomic, readonly) web::LoadPhase loadPhase; 99 @property(nonatomic, readonly) web::LoadPhase loadPhase;
100 100
101 // The fraction of the page load that has completed as a number between 0.0 101 // The fraction of the page load that has completed as a number between 0.0
102 // (nothing loaded) and 1.0 (fully loaded). 102 // (nothing loaded) and 1.0 (fully loaded).
103 @property(nonatomic, readonly) double loadingProgress; 103 @property(nonatomic, readonly) double loadingProgress;
104 104
105 // Returns whether the page can navigate backwards or forwards.
106 @property(nonatomic, readonly) BOOL canGoBack;
107 @property(nonatomic, readonly) BOOL canGoForward;
108
105 // Returns the x, y offset the content has been scrolled. 109 // Returns the x, y offset the content has been scrolled.
106 @property(nonatomic, readonly) CGPoint scrollPosition; 110 @property(nonatomic, readonly) CGPoint scrollPosition;
107 111
108 // Returns whether the top of the content is visible. 112 // Returns whether the top of the content is visible.
109 @property(nonatomic, readonly) BOOL atTop; 113 @property(nonatomic, readonly) BOOL atTop;
110 114
111 // YES if JavaScript dialogs, HTTP authentication dialogs and window.open 115 // YES if JavaScript dialogs, HTTP authentication dialogs and window.open
112 // calls should be suppressed. Default is NO. When dialog is suppressed 116 // calls should be suppressed. Default is NO. When dialog is suppressed
113 // |CRWWebDelegate webControllerDidSuppressDialog:| will be called. 117 // |CRWWebDelegate webControllerDidSuppressDialog:| will be called.
114 @property(nonatomic, assign) BOOL shouldSuppressDialogs; 118 @property(nonatomic, assign) BOOL shouldSuppressDialogs;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Stops loading the page. 188 // Stops loading the page.
185 - (void)stopLoading; 189 - (void)stopLoading;
186 190
187 // Causes the page to start loading immediately if there is a pending load; 191 // Causes the page to start loading immediately if there is a pending load;
188 // normally if the web view has been paged out for memory reasons, loads are 192 // normally if the web view has been paged out for memory reasons, loads are
189 // started lazily the next time the view is displayed. This can be called to 193 // started lazily the next time the view is displayed. This can be called to
190 // bypass the lazy behavior. This is equivalent to calling -view, but should be 194 // bypass the lazy behavior. This is equivalent to calling -view, but should be
191 // used when deliberately pre-triggering a load without displaying. 195 // used when deliberately pre-triggering a load without displaying.
192 - (void)triggerPendingLoad; 196 - (void)triggerPendingLoad;
193 197
198 // Navigate forwards or backwards by one page.
199 - (void)goBack;
200 - (void)goForward;
194 // Navigates forwards or backwards by |delta| pages. No-op if delta is out of 201 // Navigates forwards or backwards by |delta| pages. No-op if delta is out of
195 // bounds. 202 // bounds.
196 - (void)goDelta:(int)delta; 203 - (void)goDelta:(int)delta;
197 // Navigates to the item at the given |index|. 204 // Navigates to the item at the given |index|.
198 - (void)goToItemAtIndex:(int)index; 205 - (void)goToItemAtIndex:(int)index;
199 206
200 // Executes |script| in the web view, registering user interaction. 207 // Executes |script| in the web view, registering user interaction.
201 - (void)executeUserJavaScript:(NSString*)script 208 - (void)executeUserJavaScript:(NSString*)script
202 completionHandler:(web::JavaScriptResultBlock)completion; 209 completionHandler:(web::JavaScriptResultBlock)completion;
203 210
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 315
309 // Acts on a single message from the JS object, parsed from JSON into a 316 // Acts on a single message from the JS object, parsed from JSON into a
310 // DictionaryValue. Returns NO if the format for the message was invalid. 317 // DictionaryValue. Returns NO if the format for the message was invalid.
311 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 318 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
312 userIsInteracting:(BOOL)userIsInteracting 319 userIsInteracting:(BOOL)userIsInteracting
313 originURL:(const GURL&)originURL; 320 originURL:(const GURL&)originURL;
314 321
315 @end 322 @end
316 323
317 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 324 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698