tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsIDOMXULCommandDispatcher.idl (1384B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #include "nsISupports.idl"
      7 
      8 interface nsIController;
      9 interface nsIControllers;
     10 interface mozIDOMWindowProxy;
     11 
     12 webidl Element;
     13 
     14 [scriptable, uuid(a9fa9fd3-8d62-4f94-9ed8-3ea9c3cf0773)]
     15 interface nsIDOMXULCommandDispatcher : nsISupports
     16 {
     17  [setter_can_run_script]
     18  attribute Element focusedElement;
     19  [setter_can_run_script]
     20  attribute mozIDOMWindowProxy focusedWindow;
     21 
     22  void                      addCommandUpdater(in Element updater,
     23                                              in AString events,
     24                                              in AString targets);
     25  void                      removeCommandUpdater(in Element updater);
     26 
     27  [can_run_script]
     28  void                      updateCommands(in AString eventName);
     29 
     30  nsIController             getControllerForCommand(in string command);
     31  nsIControllers            getControllers();
     32 
     33  void advanceFocus();
     34  void rewindFocus();
     35  void advanceFocusIntoSubtree(in Element elt);
     36 
     37  // When locked, command updating is batched until unlocked. Always ensure that
     38  // lock and unlock is called in a pair.
     39  void lock();
     40  void unlock();
     41 };