summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/extensions/api/inline_install_private.idl
blob: 70af8c0947f85ab75832baeb741f803a588a2d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2014 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.

// Private API to initiate inline install flow of other apps.
namespace inlineInstallPrivate {

  // This returns a developer-readable error message in error and
  // a string error code in errorCode (see $ref:webstore.ErrorCode)
  callback ResultCallback = void (DOMString error,
                                  DOMString errorCode);

  interface Functions {
    // This can currently only be used to install apps, but not extensions.
    static void install(DOMString id,
                        optional ResultCallback callback);
  };
};