widget/nsIWindowsUIUtils.idl
author arthur.iakab <aiakab@mozilla.com>
Fri, 15 Mar 2019 15:50:20 +0200
changeset 522067 5edbe9b1b82220b07ff446bd4a3b9ff2f7dda508
parent 497215 5f197a31d28fb2524167a8cb92c45b2d7a64ea8a
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)

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * 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"


[scriptable, uuid(aa8a0ecf-96a1-418c-b80e-f24ae18bbedc)]
interface nsIWindowsUIUtils : nsISupports
{
  /**
   * Whether the OS is currently in tablet mode. Always false on
   * non-Windows and on versions of Windows before win10
   */
  readonly attribute boolean inTabletMode;

  /**
   * Update the tablet mode state
   */
  void updateTabletModeState();

  /**
   * Share URL
   */
  void shareUrl(in AString shareTitle, in AString urlToShare);
};