Updating interfaces to reflect new edition of the spec. Not part of build.

This commit is contained in:
bzbarsky%mit.edu 2002-07-26 01:30:33 +00:00
parent 9dddb0d846
commit a3e2603395
14 changed files with 26 additions and 231 deletions

View File

@ -44,7 +44,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(b6d02912-5ad2-417f-ab84-2626cbfcbf64)]

View File

@ -44,14 +44,19 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(ebd2f2cd-2b91-4378-8583-542756e41170)]
interface nsIDOMDOMBuilderFilter : nsISupports
{
const unsigned short FILTER_INTERRUPT = 4;
unsigned short startContainer(in nsIDOMNode snode);
// Constants returned by startElement and acceptNode
const short FILTER_ACCEPT = 1;
const short FILTER_REJECT = 2;
const short FILTER_SKIP = 3;
const short FILTER_INTERRUPT = 4;
unsigned short startElement(in nsIDOMElement elt);
unsigned short acceptNode(in nsIDOMNode enode);
readonly attribute unsigned long whatToShow;
};

View File

@ -44,15 +44,15 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(3e031490-9cc7-4d26-9953-e0496deb9992)]
interface nsIDOMDOMEntityResolver : nsISupports
{
nsIDOMDOMInputSource resolveEntity(in DOMString publicId,
in DOMString systemId,
in DOMString baseURI)
in DOMString systemId,
in DOMString baseURI)
raises(DOMException);
};

View File

@ -45,7 +45,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(9eb59471-eac7-41ff-9b81-a60b0c6c0f74)]
@ -56,7 +56,7 @@ interface nsIDOMDOMImplementationLS : nsISupports
const unsigned short MODE_ASYNCHRONOUS = 2;
nsIDOMDOMBuilder createDOMBuilder(in unsigned short mode,
in DOMString schemaType)
in DOMString schemaType)
raises(DOMException);
nsIDOMDOMWriter createDOMWriter();
nsIDOMDOMInputSource createDOMInputSource();

View File

@ -44,14 +44,16 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(981182d5-67f1-4c03-922e-f309b79c7918)]
interface nsIDOMDOMInputSource : nsISupports
{
attribute nsIDOMDOMInputStream byteStream;
attribute nsIDOMDOMReader characterStream;
// XXX Should this be an nsIInputStream?
attribute nsISupports byteStream;
// XXX Should this be an nsIUnicharInputStream?
attribute nsISupports characterStream;
attribute DOMString stringData;
attribute DOMString encoding;
attribute DOMString publicId;

View File

@ -1,53 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communiactions Corporation.
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Boris Zbarsky <bzbarsky@mit.edu> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "domstubs.idl"
/**
* The nsIDOMDOMInputStream interface represents a byte stream
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
*/
[scriptable, uuid(0b6e2206-35df-4a0c-a900-b57ed2d3ca5a)]
interface nsIDOMDOMInputStream : nsISupports
{
};

View File

@ -1,53 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communiactions Corporation.
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Boris Zbarsky <bzbarsky@mit.edu> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "domstubs.idl"
/**
* The nsIDOMDOMOutputStream interface represents a byte stream
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
*/
[scriptable, uuid(a0f3e1f0-e368-4d58-bcd3-60b9e7bf8d5e)]
interface nsIDOMDOMOutputStream : nsISupports
{
};

View File

@ -1,52 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communiactions Corporation.
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Boris Zbarsky <bzbarsky@mit.edu> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "domstubs.idl"
/**
* The nsIDOMDOMReader interface represents a character stream
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
*/
[scriptable, uuid(75c9e636-92ce-4095-8d9c-2e8d9d64c40f)]
interface nsIDOMDOMReader : nsISupports
{
};

View File

@ -43,7 +43,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(caeaa813-814c-4c77-b30d-d334557293d6)]
@ -60,7 +60,8 @@ interface nsIDOMDOMWriter : nsISupports
attribute DOMString newLine;
attribute nsIDOMDOMWriterFilter filter;
attribute nsIDOMDOMErrorHandler errorHandler;
boolean writeNode(in nsIDOMDOMOutputStream destination,
// XXX Should |destination| be an nsIOutputStream perhaps?
boolean writeNode(in nsISupports destination,
in nsIDOMNode wnode)
raises(DOMException);
DOMString writeToString(in nsIDOMNode wnode)

View File

@ -45,7 +45,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(508bc261-f170-4515-8cea-63e3a8ee4043)]

View File

@ -44,7 +44,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(96fe349f-fd68-4e3f-be50-2b69aa22e1a9)]

View File

@ -45,7 +45,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(284f8de3-6ad9-43ab-87c8-a79ae4371b3a)]

View File

@ -45,7 +45,7 @@
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
* http://www.w3.org/TR/2002/WD-DOM-Level-3-LS-20020725/load-save.html
*/
[scriptable, uuid(c7a6e5de-63fe-466c-b554-36eaecaa89bc)]

View File

@ -1,55 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communiactions Corporation.
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Boris Zbarsky <bzbarsky@mit.edu> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "domstubs.idl"
#include "nsIDOMEvent.idl"
/**
* The nsIDOMLSLoadEvent interface provides a way to notify callers of
* load completion.
*
* For more information on this interface please see
* XXX this will change
* http://www.w3.org/TR/2002/WD-DOM-Level-3-ASLS-20020409/load-save.html
*/
[scriptable, uuid(b0c74a83-4707-406d-8377-c841cdf2eea4)]
interface nsIDOMParseErrorEvent : nsIDOMEvent
{
readonly attribute nsIDOMDOMError error;
};