| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // This module implements Webview (<webview>) as a custom element that wraps a | 5 // This module implements Webview (<webview>) as a custom element that wraps a |
| 6 // BrowserPlugin object element. The object element is hidden within | 6 // BrowserPlugin object element. The object element is hidden within |
| 7 // the shadow DOM of the Webview element. | 7 // the shadow DOM of the Webview element. |
| 8 | 8 |
| 9 var DocumentNatives = requireNative('document_natives'); | 9 var DocumentNatives = requireNative('document_natives'); |
| 10 var GuestViewInternal = | 10 var GuestViewInternal = |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 window.removeEventListener(event.type, listener, useCapture); | 968 window.removeEventListener(event.type, listener, useCapture); |
| 969 }, useCapture); | 969 }, useCapture); |
| 970 | 970 |
| 971 /** | 971 /** |
| 972 * Implemented when the ChromeWebView API is available. | 972 * Implemented when the ChromeWebView API is available. |
| 973 * @private | 973 * @private |
| 974 */ | 974 */ |
| 975 WebViewInternal.prototype.maybeGetChromeWebViewEvents = function() {}; | 975 WebViewInternal.prototype.maybeGetChromeWebViewEvents = function() {}; |
| 976 | 976 |
| 977 /** | 977 /** |
| 978 * Implemented when the ChromeWebView API is available. | |
| 979 * @private | |
| 980 */ | |
| 981 WebViewInternal.prototype.maybeSetupChromeWebViewEvents = function() {}; | |
| 982 | |
| 983 /** | |
| 984 * Implemented when the experimental API is available. | 978 * Implemented when the experimental API is available. |
| 985 * @private | 979 * @private |
| 986 */ | 980 */ |
| 987 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; | 981 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; |
| 988 | 982 |
| 989 /** | 983 /** |
| 990 * Implemented when the experimental API is available. | 984 * Implemented when the experimental API is available. |
| 991 * @private | 985 * @private |
| 992 */ | 986 */ |
| 993 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { | 987 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { |
| 994 return []; | 988 return []; |
| 995 }; | 989 }; |
| 996 | 990 |
| 997 /** | 991 /** |
| 998 * Implemented when the experimental API is available. | 992 * Implemented when the experimental API is available. |
| 999 * @private | 993 * @private |
| 1000 */ | 994 */ |
| 1001 WebViewInternal.prototype.setupExperimentalContextMenus = function() { | 995 WebViewInternal.prototype.setupExperimentalContextMenus = function() { |
| 1002 }; | 996 }; |
| 1003 | 997 |
| 1004 exports.WebView = WebView; | 998 exports.WebView = WebView; |
| 1005 exports.WebViewInternal = WebViewInternal; | 999 exports.WebViewInternal = WebViewInternal; |
| OLD | NEW |