| OLD | NEW |
| 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 // Private API to initiate inline install flow of other apps. | 5 // Private API to initiate inline install flow of other apps. |
| 6 [use_movable_types=true] namespace inlineInstallPrivate { | 6 namespace inlineInstallPrivate { |
| 7 | 7 |
| 8 // This returns a developer-readable error message in error and | 8 // This returns a developer-readable error message in error and |
| 9 // a string error code in errorCode (see $ref:webstore.ErrorCode) | 9 // a string error code in errorCode (see $ref:webstore.ErrorCode) |
| 10 callback ResultCallback = void (DOMString error, | 10 callback ResultCallback = void (DOMString error, |
| 11 DOMString errorCode); | 11 DOMString errorCode); |
| 12 | 12 |
| 13 interface Functions { | 13 interface Functions { |
| 14 // This can currently only be used to install apps, but not extensions. | 14 // This can currently only be used to install apps, but not extensions. |
| 15 static void install(DOMString id, | 15 static void install(DOMString id, |
| 16 optional ResultCallback callback); | 16 optional ResultCallback callback); |
| 17 }; | 17 }; |
| 18 }; | 18 }; |
| OLD | NEW |