Bug 1689430 [wpt PR 27372] - Rewrite wpt/cookies/http-state/domain-tests.html, a...
[gecko.git] / widget / nsITouchBarUpdater.idl
blobf804191a08f0b1ca94b6f5cc633747dd8fdea894
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsIArray.idl"
6 #include "nsIBaseWindow.idl"
7 #include "nsISupports.idl"
8 #include "nsITouchBarInput.idl"
10 /**
11 * Front-to-backend communication to keep Touch Bar updated
13 [scriptable, uuid(38f396e2-93c9-4a77-aaf7-2d50b9962186)]
14 interface nsITouchBarUpdater : nsISupports
16 /**
17 * Updates an array of nsITouchBarInputs in the specified window.
19 void updateTouchBarInputs(in nsIBaseWindow aWindow, in Array<nsITouchBarInput> aInputs);
21 /**
22 * Enter the native Touch Bar customization window.
24 void enterCustomizeMode();
26 /**
27 * Checks if the user is using a Touch Bar-compatible Mac.
29 boolean isTouchBarInitialized();
31 /**
32 * Sets whether the Touch Bar is initialized.
33 * NOTE: This method is for internal unit tests only! Normally, the system
34 * sets this value after a Touch Bar is initialized on compatible Macs.
36 void setTouchBarInitialized(in boolean aIsInitialized);
38 /**
39 * If aShowing is true, aPopover is shown. Otherwise, it is hidden.
41 void showPopover(in nsIBaseWindow aWindow, in nsITouchBarInput aPopover, in boolean aShowing);