widget/nsITouchBarHelper.idl
author arthur.iakab <aiakab@mozilla.com>
Fri, 15 Mar 2019 15:50:20 +0200
changeset 522067 5edbe9b1b82220b07ff446bd4a3b9ff2f7dda508
parent 511967 099f631b90046b102aa1868455f03b7f9942eaba
child 540651 c1b80824ae8885c5caef8401813da38d500f853b
permissions -rw-r--r--
Backed out 4 changesets (bug 1500713) on request of jcristau for causing Bug 1535603 a=Backout Backed out changeset 5d0cad2c99a4 (bug 1500713) Backed out changeset f96a12eedd89 (bug 1500713) Backed out changeset 2633cea7d119 (bug 1500713) Backed out changeset 49c4cfbf2bee (bug 1500713)

/* 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 "nsIArray.idl"
#include "nsISupports.idl"
#include "nsITouchBarInput.idl"

/**
 * Back-to-frontend communication for the Touch Bar
 */
[scriptable, uuid(ea109912-3acc-48de-b679-c23b6a122da5)]
interface nsITouchBarHelper : nsISupports
{
  /**
   * Returns the active browser's URL.
   */
  readonly attribute AString activeUrl;

  /**
   * Return the active browser's page title.
   */
  readonly attribute AString activeTitle;

  /**
   * Returns the layout for the Touch Bar in an nsIArray
   * of nsITouchBarInput objects.
   */
  attribute nsIArray layout;

  /**
   * Returns the requested TouchBarInput.
   * Exposed for testing.
   */
  nsITouchBarInput getTouchBarInput(in string aInputName);
};