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

Side by Side Diff: chrome/renderer/resources/extensions/webstore_custom_bindings.js

Issue 302463005: Add support for AMD to the extensions module system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/renderer/resources/extensions/tabs_custom_bindings.js ('k') | chrome/test/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Custom binding for the webstore API. 5 // Custom binding for the webstore API.
6 6
7 var webstoreNatives = requireNative('webstore'); 7 var webstoreNatives = requireNative('webstore_natives');
8 var Event = require('event_bindings').Event; 8 var Event = require('event_bindings').Event;
9 9
10 function Installer() { 10 function Installer() {
11 this._pendingInstall = null; 11 this._pendingInstall = null;
12 this.onInstallStageChanged = 12 this.onInstallStageChanged =
13 new Event(null, [{name: 'stage', type: 'string'}], {unmanaged: true}); 13 new Event(null, [{name: 'stage', type: 'string'}], {unmanaged: true});
14 this.onDownloadProgress = 14 this.onDownloadProgress =
15 new Event(null, [{name: 'progress', type: 'number'}], {unmanaged: true}); 15 new Event(null, [{name: 'progress', type: 'number'}], {unmanaged: true});
16 } 16 }
17 17
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 exports.binding = chromeWebstore; 87 exports.binding = chromeWebstore;
88 88
89 // Called by webstore_bindings.cc. 89 // Called by webstore_bindings.cc.
90 exports.onInstallResponse = 90 exports.onInstallResponse =
91 Installer.prototype.onInstallResponse.bind(installer); 91 Installer.prototype.onInstallResponse.bind(installer);
92 exports.onInstallStageChanged = 92 exports.onInstallStageChanged =
93 Installer.prototype.onInstallStageChanged.bind(installer); 93 Installer.prototype.onInstallStageChanged.bind(installer);
94 exports.onDownloadProgress = 94 exports.onDownloadProgress =
95 Installer.prototype.onDownloadProgress.bind(installer); 95 Installer.prototype.onDownloadProgress.bind(installer);
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/tabs_custom_bindings.js ('k') | chrome/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698