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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 window.removeEventListener(event.type, listener, useCapture); | 978 window.removeEventListener(event.type, listener, useCapture); |
979 }, useCapture); | 979 }, useCapture); |
980 | 980 |
981 /** | 981 /** |
982 * Implemented when the ChromeWebView API is available. | 982 * Implemented when the ChromeWebView API is available. |
983 * @private | 983 * @private |
984 */ | 984 */ |
985 WebViewInternal.prototype.maybeGetChromeWebViewEvents = function() {}; | 985 WebViewInternal.prototype.maybeGetChromeWebViewEvents = function() {}; |
986 | 986 |
987 /** | 987 /** |
| 988 * Implemented when the ChromeWebView API is available. |
| 989 * @private |
| 990 */ |
| 991 WebViewInternal.prototype.maybeSetupChromeWebViewEvents = function() {}; |
| 992 |
| 993 /** |
988 * Implemented when the experimental API is available. | 994 * Implemented when the experimental API is available. |
989 * @private | 995 * @private |
990 */ | 996 */ |
991 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; | 997 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; |
992 | 998 |
993 /** | 999 /** |
994 * Implemented when the experimental API is available. | 1000 * Implemented when the experimental API is available. |
995 * @private | 1001 * @private |
996 */ | 1002 */ |
997 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { | 1003 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { |
998 return []; | 1004 return []; |
999 }; | 1005 }; |
1000 | 1006 |
1001 /** | 1007 /** |
1002 * Implemented when the experimental API is available. | 1008 * Implemented when the experimental API is available. |
1003 * @private | 1009 * @private |
1004 */ | 1010 */ |
1005 WebViewInternal.prototype.setupExperimentalContextMenus = function() { | 1011 WebViewInternal.prototype.setupExperimentalContextMenus = function() { |
1006 }; | 1012 }; |
1007 | 1013 |
1008 exports.WebView = WebView; | 1014 exports.WebView = WebView; |
1009 exports.WebViewInternal = WebViewInternal; | 1015 exports.WebViewInternal = WebViewInternal; |
OLD | NEW |