1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/nsIListBoxObject.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 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(AA9DEF4E-2E59-412d-A6DF-B76F52167795)] 1.14 +interface nsIListBoxObject : nsISupports 1.15 +{ 1.16 + long getRowCount(); 1.17 + long getNumberOfVisibleRows(); 1.18 + long getIndexOfFirstVisibleRow(); 1.19 + 1.20 + void ensureIndexIsVisible(in long rowIndex); 1.21 + void scrollToIndex(in long rowIndex); 1.22 + void scrollByLines(in long numLines); 1.23 + 1.24 + nsIDOMElement getItemAtIndex(in long index); 1.25 + long getIndexOfItem(in nsIDOMElement item); 1.26 +}; 1.27 + 1.28 +%{C++ 1.29 +class nsIBoxObject; 1.30 + 1.31 +nsresult 1.32 +NS_NewListBoxObject(nsIBoxObject** aResult); 1.33 + 1.34 +%}