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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 }; | 232 }; |
233 | 233 |
234 /** | 234 /** |
235 * @private | 235 * @private |
236 */ | 236 */ |
237 WebViewInternal.prototype.clearData = function() { | 237 WebViewInternal.prototype.clearData = function() { |
238 if (!this.guestInstanceId) { | 238 if (!this.guestInstanceId) { |
239 return; | 239 return; |
240 } | 240 } |
241 var args = $Array.concat([this.guestInstanceId], $Array.slice(arguments)); | 241 var args = $Array.concat([this.guestInstanceId], $Array.slice(arguments)); |
242 $Function.apply(ChromeWebView.clearData, null, args); | 242 $Function.apply(WebView.clearData, null, args); |
243 }; | 243 }; |
244 | 244 |
245 /** | 245 /** |
246 * @private | 246 * @private |
247 */ | 247 */ |
248 WebViewInternal.prototype.getProcessId = function() { | 248 WebViewInternal.prototype.getProcessId = function() { |
249 return this.processId; | 249 return this.processId; |
250 }; | 250 }; |
251 | 251 |
252 /** | 252 /** |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 }; | 1040 }; |
1041 | 1041 |
1042 /** | 1042 /** |
1043 * Implemented when the experimental API is available. | 1043 * Implemented when the experimental API is available. |
1044 * @private | 1044 * @private |
1045 */ | 1045 */ |
1046 WebViewInternal.prototype.setupExperimentalContextMenus = function() {}; | 1046 WebViewInternal.prototype.setupExperimentalContextMenus = function() {}; |
1047 | 1047 |
1048 exports.WebView = WebView; | 1048 exports.WebView = WebView; |
1049 exports.WebViewInternal = WebViewInternal; | 1049 exports.WebViewInternal = WebViewInternal; |
OLD | NEW |