~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/dom/public/idl/traversal/nsIDOMTreeWalker.idl

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
 *
 
3
 * The contents of this file are subject to the Mozilla Public
 
4
 * License Version 1.1 (the "License"); you may not use this file
 
5
 * except in compliance with the License. You may obtain a copy of
 
6
 * the License at http://www.mozilla.org/MPL/
 
7
 *
 
8
 * Software distributed under the License is distributed on an "AS
 
9
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
10
 * implied. See the License for the specific language governing
 
11
 * rights and limitations under the License.
 
12
 *
 
13
 * The Original Code is this file as it was released on
 
14
 * May 1 2001.
 
15
 *
 
16
 * The Initial Developer of the Original Code is Jonas Sicking.
 
17
 * Portions created by Jonas Sicking are Copyright (C) 2001
 
18
 * Jonas Sicking.  All Rights Reserved.
 
19
 *
 
20
 * Contributor(s):
 
21
 *   Jonas Sicking <sicking@bigfoot.com> (Original Author)
 
22
 *
 
23
 * Alternatively, the contents of this file may be used under the
 
24
 * terms of the GNU General Public License Version 2 or later (the
 
25
 * "GPL"), in which case the provisions of the GPL are applicable
 
26
 * instead of those above.  If you wish to allow use of your
 
27
 * version of this file only under the terms of the GPL and not to
 
28
 * allow others to use your version of this file under the MPL,
 
29
 * indicate your decision by deleting the provisions above and
 
30
 * replace them with the notice and other provisions required by
 
31
 * the GPL.  If you do not delete the provisions above, a recipient
 
32
 * may use your version of this file under either the MPL or the
 
33
 * GPL.
 
34
 *
 
35
 */
 
36
 
 
37
#include "domstubs.idl"
 
38
 
 
39
interface nsIDOMTreeWalker;
 
40
interface nsIDOMNodeFilter;
 
41
 
 
42
 
 
43
[scriptable, uuid(400af3ca-1dd2-11b2-a50a-887ecca2e63a)]
 
44
// Introduced in DOM Level 2:
 
45
interface nsIDOMTreeWalker : nsISupports {
 
46
  readonly attribute nsIDOMNode       root;
 
47
  readonly attribute unsigned long    whatToShow;
 
48
  readonly attribute nsIDOMNodeFilter filter;
 
49
  readonly attribute boolean          expandEntityReferences;
 
50
           attribute nsIDOMNode       currentNode;
 
51
                                        // raises(DOMException) on setting
 
52
 
 
53
  nsIDOMNode         parentNode();
 
54
  nsIDOMNode         firstChild();
 
55
  nsIDOMNode         lastChild();
 
56
  nsIDOMNode         previousSibling();
 
57
  nsIDOMNode         nextSibling();
 
58
  nsIDOMNode         previousNode();
 
59
  nsIDOMNode         nextNode();
 
60
};