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

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: Created 8 years, 10 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 8fbce65bcddb8ad35ee79d8ee06ed6c23cee34f2..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/app.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2011 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 chrome = chrome || {};
-(function() {
- native function GetChromeHidden();
- native function GetIsInstalled();
- native function Install();
- native function GetDetails();
- native function GetDetailsForFrame();
- native function GetAppNotifyChannel();
-
- var chromeHidden = 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