| 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 var natives = requireNative('app'); | 5 var natives = requireNative('app'); |
| 6 var GetIsInstalled = natives.GetIsInstalled; | 6 var GetIsInstalled = natives.GetIsInstalled; |
| 7 var Install = natives.Install; | 7 var Install = natives.Install; |
| 8 var GetDetails = natives.GetDetails; | 8 var GetDetails = natives.GetDetails; |
| 9 var GetDetailsForFrame = natives.GetDetailsForFrame; | 9 var GetDetailsForFrame = natives.GetDetailsForFrame; |
| 10 var GetAppNotifyChannel = natives.GetAppNotifyChannel; | 10 var GetAppNotifyChannel = natives.GetAppNotifyChannel; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 }(); | 32 }(); |
| 33 | 33 |
| 34 chromeHidden.app = {}; | 34 chromeHidden.app = {}; |
| 35 chromeHidden.app.onGetAppNotifyChannelResponse = | 35 chromeHidden.app.onGetAppNotifyChannelResponse = |
| 36 function(channelId, error, callbackId) { | 36 function(channelId, error, callbackId) { |
| 37 if (callbackId) { | 37 if (callbackId) { |
| 38 callbacks[callbackId](channelId, error); | 38 callbacks[callbackId](channelId, error); |
| 39 delete callbacks[callbackId]; | 39 delete callbacks[callbackId]; |
| 40 } | 40 } |
| 41 }; | 41 }; |
| OLD | NEW |