Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: extensions/renderer/resources/guest_view/web_view/web_view_action_requests.js

Issue 2908883002: [Extensions Bindings] Remove some modules with native bindings (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 helper objects for the dialog, newwindow, and 5 // This module implements helper objects for the dialog, newwindow, and
6 // permissionrequest <webview> events. 6 // permissionrequest <webview> events.
7 7
8 var MessagingNatives = requireNative('messaging_natives'); 8 var MessagingNatives = requireNative('messaging_natives');
9 var WebViewConstants = require('webViewConstants').WebViewConstants; 9 var WebViewConstants = require('webViewConstants').WebViewConstants;
10 var WebViewInternal = require('webViewInternal').WebViewInternal; 10 var WebViewInternal = getInternalApi ?
11 getInternalApi('webViewInternal') :
12 require('webViewInternal').WebViewInternal;
11 13
12 var PERMISSION_TYPES = ['media', 14 var PERMISSION_TYPES = ['media',
13 'geolocation', 15 'geolocation',
14 'pointerLock', 16 'pointerLock',
15 'download', 17 'download',
16 'loadplugin', 18 'loadplugin',
17 'filesystem', 19 'filesystem',
18 'fullscreen']; 20 'fullscreen'];
19 21
20 // ----------------------------------------------------------------------------- 22 // -----------------------------------------------------------------------------
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 var WebViewActionRequests = { 296 var WebViewActionRequests = {
295 WebViewActionRequest: WebViewActionRequest, 297 WebViewActionRequest: WebViewActionRequest,
296 Dialog: Dialog, 298 Dialog: Dialog,
297 NewWindow: NewWindow, 299 NewWindow: NewWindow,
298 PermissionRequest: PermissionRequest, 300 PermissionRequest: PermissionRequest,
299 FullscreenPermissionRequest: FullscreenPermissionRequest 301 FullscreenPermissionRequest: FullscreenPermissionRequest
300 }; 302 };
301 303
302 // Exports. 304 // Exports.
303 exports.$set('WebViewActionRequests', WebViewActionRequests); 305 exports.$set('WebViewActionRequests', WebViewActionRequests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698