| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // from the current page into the current session entry. | 225 // from the current page into the current session entry. |
| 226 - (void)recordStateInHistory; | 226 - (void)recordStateInHistory; |
| 227 // Restores the state for this page from session history. | 227 // Restores the state for this page from session history. |
| 228 // TODO(stuartmorgan): This is public only temporarily; once refactoring is | 228 // TODO(stuartmorgan): This is public only temporarily; once refactoring is |
| 229 // complete it will be handled internally. | 229 // complete it will be handled internally. |
| 230 - (void)restoreStateFromHistory; | 230 - (void)restoreStateFromHistory; |
| 231 | 231 |
| 232 // Notifies the CRWWebController that it has been shown. | 232 // Notifies the CRWWebController that it has been shown. |
| 233 - (void)wasShown; | 233 - (void)wasShown; |
| 234 | 234 |
| 235 // Notifies the CRWWebController that the current page is an HTTP page |
| 236 // containing a password field. |
| 237 - (void)didShowPasswordInputOnHTTP; |
| 238 |
| 235 // Notifies the CRWWebController that it has been hidden. | 239 // Notifies the CRWWebController that it has been hidden. |
| 236 - (void)wasHidden; | 240 - (void)wasHidden; |
| 237 | 241 |
| 238 // Returns |YES| if the current page should show the keyboard shield. | 242 // Returns |YES| if the current page should show the keyboard shield. |
| 239 - (BOOL)wantsKeyboardShield; | 243 - (BOOL)wantsKeyboardShield; |
| 240 | 244 |
| 241 // Returns |YES| if the current page should should the location bar hint text. | 245 // Returns |YES| if the current page should should the location bar hint text. |
| 242 - (BOOL)wantsLocationBarHintText; | 246 - (BOOL)wantsLocationBarHintText; |
| 243 | 247 |
| 244 // Adds |recognizer| as a gesture recognizer to the web view. | 248 // Adds |recognizer| as a gesture recognizer to the web view. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 309 |
| 306 // Acts on a single message from the JS object, parsed from JSON into a | 310 // Acts on a single message from the JS object, parsed from JSON into a |
| 307 // DictionaryValue. Returns NO if the format for the message was invalid. | 311 // DictionaryValue. Returns NO if the format for the message was invalid. |
| 308 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 312 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
| 309 userIsInteracting:(BOOL)userIsInteracting | 313 userIsInteracting:(BOOL)userIsInteracting |
| 310 originURL:(const GURL&)originURL; | 314 originURL:(const GURL&)originURL; |
| 311 | 315 |
| 312 @end | 316 @end |
| 313 | 317 |
| 314 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 318 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
| OLD | NEW |