Adding XUL DOM interfaces, not part of the build yet.

This commit is contained in:
jst%netscape.com 2001-02-23 10:07:18 +00:00
parent 0f1d140dbb
commit b4be84e32b
4 changed files with 193 additions and 0 deletions

View File

@ -0,0 +1,45 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
interface nsIDOMElement;
interface nsIController;
interface nsIControllers;
interface nsIDOMWindow;
[scriptable, uuid(f3c50361-14fe-11d3-bf87-00105a1b0627)]
interface nsIDOMXULCommandDispatcher : nsISupports
{
attribute nsIDOMElement focusedElement;
attribute nsIDOMWindow focusedWindow;
void addCommandUpdater(in nsIDOMElement updater,
in DOMString events,
in DOMString targets);
void removeCommandUpdater(in nsIDOMElement updater);
void updateCommands(in DOMString eventName);
nsIController getControllerForCommand(in DOMString command);
nsIControllers getControllers();
};

View File

@ -0,0 +1,42 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
*/
#include "nsIDOMDocument.idl"
interface nsIDOMXULCommandDispatcher;
[scriptable, uuid(17ddd8c0-c5f8-11d2-a6ae-00104bde6048)]
interface nsIDOMXULDocument : nsIDOMDocument
{
attribute nsIDOMNode popupNode;
attribute nsIDOMNode tooltipNode;
readonly attribute nsIDOMXULCommandDispatcher commandDispatcher;
readonly attribute long width;
readonly attribute long height;
nsIDOMNodeList getElementsByAttribute(in DOMString name,
in DOMString value);
void persist(in DOMString id, in DOMString attr);
};

View File

@ -0,0 +1,58 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
*/
#include "nsIDOMElement.idl"
interface nsIRDFCompositeDataSource;
interface nsIXULTemplateBuilder;
interface nsIRDFResource;
interface nsIControllers;
interface nsIBoxObject;
[scriptable, uuid(0574ed81-c088-11d2-96ed-00104b7b7deb)]
interface nsIDOMXULElement : nsIDOMElement
{
attribute DOMString id;
attribute DOMString className;
// XXX: This doesn't belong here, nsIDOMLinkStyle has this...
readonly attribute nsIDOMCSSStyleDeclaration style;
readonly attribute nsIRDFCompositeDataSource database;
readonly attribute nsIXULTemplateBuilder builder;
readonly attribute nsIRDFResource resource;
readonly attribute nsIControllers controllers;
readonly attribute nsIBoxObject boxObject;
void addBroadcastListener(in DOMString attr,
in nsIDOMElement element);
void removeBroadcastListener(in DOMString attr,
in nsIDOMElement element);
void doCommand();
void focus();
void blur();
void click();
nsIDOMNodeList getElementsByAttribute(in DOMString name,
in DOMString value);
};

View File

@ -0,0 +1,48 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
*/
#include "nsIDOMXULElement.idl"
[scriptable, uuid(a6cf90ec-15b3-11d2-932e-00805f8add32)]
interface nsIDOMXULTreeElement : nsIDOMXULElement
{
readonly attribute nsIDOMNodeList selectedItems;
attribute nsIDOMXULElement currentItem;
attribute boolean suppressOnSelect;
void selectItem(in nsIDOMXULElement treeItem);
void timedSelect(in nsIDOMXULElement treeItem,
in long timeout);
void clearItemSelection();
void addItemToSelection(in nsIDOMXULElement treeItem);
void removeItemFromSelection(in nsIDOMXULElement treeItem);
void toggleItemSelection(in nsIDOMXULElement treeItem);
void selectItemRange(in nsIDOMXULElement startItem,
in nsIDOMXULElement endItem);
void selectAll();
void invertSelection();
};