Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsIDOMElement; |
michael@0 | 9 | |
michael@0 | 10 | [scriptable, uuid(ce572460-b0f2-4650-a9e7-c53a99d3b6ad)] |
michael@0 | 11 | interface nsIBoxObject : nsISupports |
michael@0 | 12 | { |
michael@0 | 13 | readonly attribute nsIDOMElement element; |
michael@0 | 14 | |
michael@0 | 15 | readonly attribute long x; |
michael@0 | 16 | readonly attribute long y; |
michael@0 | 17 | readonly attribute long screenX; |
michael@0 | 18 | readonly attribute long screenY; |
michael@0 | 19 | readonly attribute long width; |
michael@0 | 20 | readonly attribute long height; |
michael@0 | 21 | |
michael@0 | 22 | nsISupports getPropertyAsSupports(in wstring propertyName); |
michael@0 | 23 | void setPropertyAsSupports(in wstring propertyName, in nsISupports value); |
michael@0 | 24 | wstring getProperty(in wstring propertyName); |
michael@0 | 25 | void setProperty(in wstring propertyName, in wstring propertyValue); |
michael@0 | 26 | void removeProperty(in wstring propertyName); |
michael@0 | 27 | |
michael@0 | 28 | // for stepping through content in the expanded dom with box-ordinal-group order |
michael@0 | 29 | readonly attribute nsIDOMElement parentBox; |
michael@0 | 30 | readonly attribute nsIDOMElement firstChild; |
michael@0 | 31 | readonly attribute nsIDOMElement lastChild; |
michael@0 | 32 | readonly attribute nsIDOMElement nextSibling; |
michael@0 | 33 | readonly attribute nsIDOMElement previousSibling; |
michael@0 | 34 | }; |
michael@0 | 35 | |
michael@0 | 36 | %{C++ |
michael@0 | 37 | nsresult |
michael@0 | 38 | NS_NewBoxObject(nsIBoxObject** aResult); |
michael@0 | 39 | |
michael@0 | 40 | %} |