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 /** | |
994 * Implemented when the experimental API is available. | 988 * Implemented when the experimental API is available. |
995 * @private | 989 * @private |
996 */ | 990 */ |
997 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; | 991 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; |
998 | 992 |
999 /** | 993 /** |
1000 * Implemented when the experimental API is available. | 994 * Implemented when the experimental API is available. |
1001 * @private | 995 * @private |
1002 */ | 996 */ |
1003 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { | 997 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { |
1004 return []; | 998 return []; |
1005 }; | 999 }; |
1006 | 1000 |
1007 /** | 1001 /** |
1008 * Implemented when the experimental API is available. | 1002 * Implemented when the experimental API is available. |
1009 * @private | 1003 * @private |
1010 */ | 1004 */ |
1011 WebViewInternal.prototype.setupExperimentalContextMenus = function() { | 1005 WebViewInternal.prototype.setupExperimentalContextMenus = function() { |
1012 }; | 1006 }; |
1013 | 1007 |
1014 exports.WebView = WebView; | 1008 exports.WebView = WebView; |
1015 exports.WebViewInternal = WebViewInternal; | 1009 exports.WebViewInternal = WebViewInternal; |
OLD | NEW |