1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/nsIBoxObject.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIDOMElement; 1.12 + 1.13 +[scriptable, uuid(ce572460-b0f2-4650-a9e7-c53a99d3b6ad)] 1.14 +interface nsIBoxObject : nsISupports 1.15 +{ 1.16 + readonly attribute nsIDOMElement element; 1.17 + 1.18 + readonly attribute long x; 1.19 + readonly attribute long y; 1.20 + readonly attribute long screenX; 1.21 + readonly attribute long screenY; 1.22 + readonly attribute long width; 1.23 + readonly attribute long height; 1.24 + 1.25 + nsISupports getPropertyAsSupports(in wstring propertyName); 1.26 + void setPropertyAsSupports(in wstring propertyName, in nsISupports value); 1.27 + wstring getProperty(in wstring propertyName); 1.28 + void setProperty(in wstring propertyName, in wstring propertyValue); 1.29 + void removeProperty(in wstring propertyName); 1.30 + 1.31 + // for stepping through content in the expanded dom with box-ordinal-group order 1.32 + readonly attribute nsIDOMElement parentBox; 1.33 + readonly attribute nsIDOMElement firstChild; 1.34 + readonly attribute nsIDOMElement lastChild; 1.35 + readonly attribute nsIDOMElement nextSibling; 1.36 + readonly attribute nsIDOMElement previousSibling; 1.37 +}; 1.38 + 1.39 +%{C++ 1.40 +nsresult 1.41 +NS_NewBoxObject(nsIBoxObject** aResult); 1.42 + 1.43 +%}