| OLD | NEW |
| 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_VIEW_PUBLIC_CRIWV_WEB_VIEW_DELEGATE_H_ | 5 #ifndef IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_DELEGATE_H_ |
| 6 #define IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_DELEGATE_H_ | 6 #define IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @protocol CRIWVTranslateDelegate; | 10 @protocol CRIWVTranslateDelegate; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 - (void)webView:(id<CRIWVWebView>)webView | 25 - (void)webView:(id<CRIWVWebView>)webView |
| 26 didFinishLoadingWithURL:(NSURL*)url | 26 didFinishLoadingWithURL:(NSURL*)url |
| 27 loadSuccess:(BOOL)loadSuccess; | 27 loadSuccess:(BOOL)loadSuccess; |
| 28 | 28 |
| 29 - (void)webView:(id<CRIWVWebView>)webView | 29 - (void)webView:(id<CRIWVWebView>)webView |
| 30 didUpdateWithChanges:(CRIWVWebViewUpdateType)changes; | 30 didUpdateWithChanges:(CRIWVWebViewUpdateType)changes; |
| 31 | 31 |
| 32 - (id<CRIWVTranslateDelegate>)translateDelegate; | 32 - (id<CRIWVTranslateDelegate>)translateDelegate; |
| 33 | 33 |
| 34 // Returns YES if the web view should load |url| or NO for a custom handling. | |
| 35 - (BOOL)webView:(id<CRIWVWebView>)webView | |
| 36 shouldOpenURL:(NSURL*)url | |
| 37 mainDocumentURL:(NSURL*)mainDocumentURL | |
| 38 linkClicked:(BOOL)linkClicked; | |
| 39 | |
| 40 @end | 34 @end |
| 41 | 35 |
| 42 #endif // IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_DELEGATE_H_ | 36 #endif // IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_DELEGATE_H_ |
| OLD | NEW |