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 EventBindings = require('event_bindings'); | 10 var EventBindings = require('event_bindings'); |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 }, | 821 }, |
822 enumerable: true | 822 enumerable: true |
823 }); | 823 }); |
824 }; | 824 }; |
825 | 825 |
826 /** | 826 /** |
827 * @private | 827 * @private |
828 */ | 828 */ |
829 WebViewInternal.prototype.getPermissionTypes = function() { | 829 WebViewInternal.prototype.getPermissionTypes = function() { |
830 var permissions = | 830 var permissions = |
831 ['media', 'geolocation', 'pointerLock', 'download', 'loadplugin']; | 831 ['media', |
| 832 'geolocation', |
| 833 'pointerLock', |
| 834 'download', |
| 835 'loadplugin', |
| 836 'filesystem']; |
832 return permissions.concat(this.maybeGetExperimentalPermissions()); | 837 return permissions.concat(this.maybeGetExperimentalPermissions()); |
833 }; | 838 }; |
834 | 839 |
835 /** | 840 /** |
836 * @private | 841 * @private |
837 */ | 842 */ |
838 WebViewInternal.prototype.handleDialogEvent = | 843 WebViewInternal.prototype.handleDialogEvent = |
839 function(event, webViewEvent) { | 844 function(event, webViewEvent) { |
840 var showWarningMessage = function(dialogType) { | 845 var showWarningMessage = function(dialogType) { |
841 var VOWELS = ['a', 'e', 'i', 'o', 'u']; | 846 var VOWELS = ['a', 'e', 'i', 'o', 'u']; |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 | 1462 |
1458 /** | 1463 /** |
1459 * Implemented when the experimental API is available. | 1464 * Implemented when the experimental API is available. |
1460 * @private | 1465 * @private |
1461 */ | 1466 */ |
1462 WebViewInternal.prototype.setupExperimentalContextMenus_ = function() {}; | 1467 WebViewInternal.prototype.setupExperimentalContextMenus_ = function() {}; |
1463 | 1468 |
1464 exports.WebView = WebView; | 1469 exports.WebView = WebView; |
1465 exports.WebViewInternal = WebViewInternal; | 1470 exports.WebViewInternal = WebViewInternal; |
1466 exports.CreateEvent = CreateEvent; | 1471 exports.CreateEvent = CreateEvent; |
OLD | NEW |