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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 }, | 680 }, |
681 enumerable: true | 681 enumerable: true |
682 }); | 682 }); |
683 }; | 683 }; |
684 | 684 |
685 /** | 685 /** |
686 * @private | 686 * @private |
687 */ | 687 */ |
688 WebViewInternal.prototype.getPermissionTypes = function() { | 688 WebViewInternal.prototype.getPermissionTypes = function() { |
689 var permissions = | 689 var permissions = |
690 ['media', 'geolocation', 'pointerLock', 'download', 'loadplugin']; | 690 ['media', |
| 691 'geolocation', |
| 692 'pointerLock', |
| 693 'download', |
| 694 'loadplugin', |
| 695 'filesystem']; |
691 return permissions.concat(this.maybeGetExperimentalPermissions()); | 696 return permissions.concat(this.maybeGetExperimentalPermissions()); |
692 }; | 697 }; |
693 | 698 |
694 /** | 699 /** |
695 * @private | 700 * @private |
696 */ | 701 */ |
697 WebViewInternal.prototype.handleDialogEvent = | 702 WebViewInternal.prototype.handleDialogEvent = |
698 function(event, webViewEvent) { | 703 function(event, webViewEvent) { |
699 var showWarningMessage = function(dialogType) { | 704 var showWarningMessage = function(dialogType) { |
700 var VOWELS = ['a', 'e', 'i', 'o', 'u']; | 705 var VOWELS = ['a', 'e', 'i', 'o', 'u']; |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 | 1253 |
1249 /** | 1254 /** |
1250 * Implemented when the experimental API is available. | 1255 * Implemented when the experimental API is available. |
1251 * @private | 1256 * @private |
1252 */ | 1257 */ |
1253 WebViewInternal.prototype.setupExperimentalContextMenus_ = function() {}; | 1258 WebViewInternal.prototype.setupExperimentalContextMenus_ = function() {}; |
1254 | 1259 |
1255 exports.WebView = WebView; | 1260 exports.WebView = WebView; |
1256 exports.WebViewInternal = WebViewInternal; | 1261 exports.WebViewInternal = WebViewInternal; |
1257 exports.CreateEvent = CreateEvent; | 1262 exports.CreateEvent = CreateEvent; |
OLD | NEW |