Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 21:42:36 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2001-02-23 13:07:18 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIDOMElement;
|
|
|
|
interface nsIController;
|
|
|
|
interface nsIControllers;
|
2016-01-30 20:05:36 +03:00
|
|
|
interface mozIDOMWindowProxy;
|
2001-02-23 13:07:18 +03:00
|
|
|
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
[scriptable, uuid(a9fa9fd3-8d62-4f94-9ed8-3ea9c3cf0773)]
|
2001-02-23 13:07:18 +03:00
|
|
|
interface nsIDOMXULCommandDispatcher : nsISupports
|
|
|
|
{
|
|
|
|
attribute nsIDOMElement focusedElement;
|
2016-01-30 20:05:36 +03:00
|
|
|
attribute mozIDOMWindowProxy focusedWindow;
|
2001-02-23 13:07:18 +03:00
|
|
|
|
|
|
|
void addCommandUpdater(in nsIDOMElement updater,
|
|
|
|
in DOMString events,
|
|
|
|
in DOMString targets);
|
|
|
|
void removeCommandUpdater(in nsIDOMElement updater);
|
|
|
|
|
|
|
|
void updateCommands(in DOMString eventName);
|
|
|
|
|
2002-07-16 02:04:13 +04:00
|
|
|
nsIController getControllerForCommand(in string command);
|
2001-02-23 13:07:18 +03:00
|
|
|
nsIControllers getControllers();
|
2001-04-11 07:05:42 +04:00
|
|
|
|
|
|
|
void advanceFocus();
|
|
|
|
void rewindFocus();
|
|
|
|
void advanceFocusIntoSubtree(in nsIDOMElement elt);
|
2003-12-07 12:44:40 +03:00
|
|
|
attribute boolean suppressFocusScroll;
|
2017-05-01 17:42:33 +03:00
|
|
|
|
|
|
|
// When locked, command updating is batched until unlocked. Always ensure that
|
|
|
|
// lock and unlock is called in a pair.
|
|
|
|
void lock();
|
|
|
|
void unlock();
|
2001-02-23 13:07:18 +03:00
|
|
|
};
|