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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 window.removeEventListener(event.type, listener, useCapture); | 1010 window.removeEventListener(event.type, listener, useCapture); |
1011 }, useCapture); | 1011 }, useCapture); |
1012 | 1012 |
1013 /** | 1013 /** |
1014 * Implemented when the ChromeWebView API is available. | 1014 * Implemented when the ChromeWebView API is available. |
1015 * @private | 1015 * @private |
1016 */ | 1016 */ |
1017 WebViewInternal.prototype.maybeGetChromeWebViewEvents = function() {}; | 1017 WebViewInternal.prototype.maybeGetChromeWebViewEvents = function() {}; |
1018 | 1018 |
1019 /** | 1019 /** |
| 1020 * Implemented when the ChromeWebView API is available. |
| 1021 * @private |
| 1022 */ |
| 1023 WebViewInternal.prototype.maybeSetupChromeWebViewEvents = function() {}; |
| 1024 |
| 1025 /** |
1020 * Implemented when the experimental API is available. | 1026 * Implemented when the experimental API is available. |
1021 * @private | 1027 * @private |
1022 */ | 1028 */ |
1023 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; | 1029 WebViewInternal.prototype.maybeGetExperimentalEvents = function() {}; |
1024 | 1030 |
1025 /** | 1031 /** |
1026 * Implemented when the experimental API is available. | 1032 * Implemented when the experimental API is available. |
1027 * @private | 1033 * @private |
1028 */ | 1034 */ |
1029 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { | 1035 WebViewInternal.prototype.maybeGetExperimentalPermissions = function() { |
1030 return []; | 1036 return []; |
1031 }; | 1037 }; |
1032 | 1038 |
1033 /** | 1039 /** |
1034 * Implemented when the experimental API is available. | 1040 * Implemented when the experimental API is available. |
1035 * @private | 1041 * @private |
1036 */ | 1042 */ |
1037 WebViewInternal.prototype.setupExperimentalContextMenus = function() { | 1043 WebViewInternal.prototype.setupExperimentalContextMenus = function() { |
1038 }; | 1044 }; |
1039 | 1045 |
1040 exports.WebView = WebView; | 1046 exports.WebView = WebView; |
1041 exports.WebViewInternal = WebViewInternal; | 1047 exports.WebViewInternal = WebViewInternal; |
OLD | NEW |