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

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

Issue 1458703004: Fixes document type detection on iOS 9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments 1 Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROTECTED_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
7 7
8 #import "ios/web/web_state/ui/crw_web_controller.h" 8 #import "ios/web/web_state/ui/crw_web_controller.h"
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Returns YES if the current navigation item corresponds to a web page 114 // Returns YES if the current navigation item corresponds to a web page
115 // loaded by a POST request. 115 // loaded by a POST request.
116 - (BOOL)isCurrentNavigationItemPOST; 116 - (BOOL)isCurrentNavigationItemPOST;
117 117
118 // Returns the type of document object loaded in the web view. 118 // Returns the type of document object loaded in the web view.
119 - (web::WebViewDocumentType)webViewDocumentType; 119 - (web::WebViewDocumentType)webViewDocumentType;
120 120
121 // Loads the given HTML in the web view. 121 // Loads the given HTML in the web view.
122 - (void)loadWebHTMLString:(NSString*)html forURL:(const GURL&)URL; 122 - (void)loadWebHTMLString:(NSString*)html forURL:(const GURL&)URL;
123 123
124 // Converts MIME type string to WebViewDocumentType.
125 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType;
Eugene But (OOO till 7-30) 2015/11/19 16:29:01 This interface is divided by section. And this ver
stkhapugin 2015/11/20 10:50:43 Done.
126
124 // These public methods should be implemented by subclasses. 127 // These public methods should be implemented by subclasses.
125 //- (void)evaluateJavaScript:(NSString*)script 128 //- (void)evaluateJavaScript:(NSString*)script
126 // stringResultHandler:(web::JavaScriptCompletion)handler; 129 // stringResultHandler:(web::JavaScriptCompletion)handler;
127 //- (BOOL)scriptHasBeenInjectedForClass:(Class)jsInjectionManagerClass 130 //- (BOOL)scriptHasBeenInjectedForClass:(Class)jsInjectionManagerClass
128 // presenceBeacon:(NSString*)beacon; 131 // presenceBeacon:(NSString*)beacon;
129 //- (void)loadRequest:(NSMutableURLRequest*)request; 132 //- (void)loadRequest:(NSMutableURLRequest*)request;
130 // Subclasses must call super's implementation. 133 // Subclasses must call super's implementation.
131 //- (void)injectScript:(NSString*)script 134 //- (void)injectScript:(NSString*)script
132 // forClass:(Class)jsInjectionManagerClass; 135 // forClass:(Class)jsInjectionManagerClass;
133 //- (web::WebViewType)webViewType; 136 //- (web::WebViewType)webViewType;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 409
407 // Returns the current entry from the underlying session controller. 410 // Returns the current entry from the underlying session controller.
408 - (CRWSessionEntry*)currentSessionEntry; 411 - (CRWSessionEntry*)currentSessionEntry;
409 412
410 // Resets pending external request information. 413 // Resets pending external request information.
411 - (void)resetExternalRequest; 414 - (void)resetExternalRequest;
412 415
413 @end 416 @end
414 417
415 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 418 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698