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

Unified Diff: chrome/renderer/resources/extensions/app.js

Issue 9460002: Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reabse Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/app.js
diff --git a/chrome/renderer/resources/extensions/app.js b/chrome/renderer/resources/extensions/app.js
deleted file mode 100644
index 7337d860bb985b33db39f059cc754e0e669c9fc9..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/app.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
- var natives = requireNative('app');
- var GetIsInstalled = natives.GetIsInstalled;
- var Install = natives.Install;
- var GetDetails = natives.GetDetails;
- var GetDetailsForFrame = natives.GetDetailsForFrame;
- var GetAppNotifyChannel = natives.GetAppNotifyChannel;
-
- var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
- var callbacks = {};
- var nextCallbackId = 1;
-
- chrome.app = new function() {
- this.__defineGetter__('isInstalled', GetIsInstalled);
- this.install = Install;
- this.getDetails = GetDetails;
- this.getDetailsForFrame = GetDetailsForFrame;
- }();
-
- chrome.appNotifications = new function() {
- this.getChannel = function(clientId, callback) {
- var callbackId = 0;
- if (callback) {
- callbackId = nextCallbackId++;
- callbacks[callbackId] = callback;
- }
- GetAppNotifyChannel(clientId, callbackId);
- };
- }();
-
- chromeHidden.app = {};
- chromeHidden.app.onGetAppNotifyChannelResponse =
- function(channelId, error, callbackId) {
- if (callbackId) {
- callbacks[callbackId](channelId, error);
- delete callbacks[callbackId];
- }
- };

Powered by Google App Engine
This is Rietveld 408576698