OLD | NEW |
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 - (void)setOverlayPreviewMode:(BOOL)overlayPreviewMode; | 231 - (void)setOverlayPreviewMode:(BOOL)overlayPreviewMode; |
232 | 232 |
233 // Records the state (scroll position, form values, whatever can be harvested) | 233 // Records the state (scroll position, form values, whatever can be harvested) |
234 // from the current page into the current session entry. | 234 // from the current page into the current session entry. |
235 - (void)recordStateInHistory; | 235 - (void)recordStateInHistory; |
236 // Restores the state for this page from session history. | 236 // Restores the state for this page from session history. |
237 // TODO(stuartmorgan): This is public only temporarily; once refactoring is | 237 // TODO(stuartmorgan): This is public only temporarily; once refactoring is |
238 // complete it will be handled internally. | 238 // complete it will be handled internally. |
239 - (void)restoreStateFromHistory; | 239 - (void)restoreStateFromHistory; |
240 | 240 |
241 // Asynchronously checks whether the element at the location of | |
242 // |gestureRecognizer| is a link. | |
243 - (void)checkLinkPresenceUnderGesture:(UIGestureRecognizer*)gestureRecognizer | |
244 completionHandler:(void (^)(BOOL))completionHandler; | |
245 | |
246 // Notifies the CRWWebController that it has been shown. | 241 // Notifies the CRWWebController that it has been shown. |
247 - (void)wasShown; | 242 - (void)wasShown; |
248 | 243 |
249 // Notifies the CRWWebController that it has been hidden. | 244 // Notifies the CRWWebController that it has been hidden. |
250 - (void)wasHidden; | 245 - (void)wasHidden; |
251 | 246 |
252 // Returns |YES| if the current page should show the keyboard shield. | 247 // Returns |YES| if the current page should show the keyboard shield. |
253 - (BOOL)wantsKeyboardShield; | 248 - (BOOL)wantsKeyboardShield; |
254 | 249 |
255 // Returns |YES| if the current page should should the location bar hint text. | 250 // Returns |YES| if the current page should should the location bar hint text. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 319 |
325 // Acts on a single message from the JS object, parsed from JSON into a | 320 // Acts on a single message from the JS object, parsed from JSON into a |
326 // DictionaryValue. Returns NO if the format for the message was invalid. | 321 // DictionaryValue. Returns NO if the format for the message was invalid. |
327 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 322 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
328 userIsInteracting:(BOOL)userIsInteracting | 323 userIsInteracting:(BOOL)userIsInteracting |
329 originURL:(const GURL&)originURL; | 324 originURL:(const GURL&)originURL; |
330 | 325 |
331 @end | 326 @end |
332 | 327 |
333 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 328 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
OLD | NEW |