widget/nsIMacWebAppUtils.idl
author Ryan VanderMeulen <ryanvm@gmail.com>
Mon, 04 Nov 2013 16:33:35 -0500
changeset 153429 94a672274c2b319732713e02527a542e6b63ae1b
parent 99398 4cffe2b37d0c95dde87ec2a96f5bf8d34eb3a670
child 178302 d0012e4d8a9a4cd0dd99bd0afd76541f7fecb870
permissions -rw-r--r--
Merge m-c to fx-team.

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsIMacWebAppUtils;

/**
 * Allow MozApps API to locate and manipulate natively installed apps
 */

[scriptable, uuid(e9096367-ddd9-45e4-b762-49c0c18b7119)]
interface nsIMacWebAppUtils : nsISupports {
  /**
   * Find the path for an app with the given signature.
   */
  AString pathForAppWithIdentifier(in AString bundleIdentifier);

  /**
   * Launch the app with the given identifier, if it exists.
   */
  void launchAppWithIdentifier(in AString bundleIdentifier);

};