1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/xul/nsIDOMXULButtonElement.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* -*- Mode: IDL; 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 "nsIDOMXULLabeledControlEl.idl" 1.10 + 1.11 +[scriptable, uuid(d56f1f8f-fc4e-4650-9a85-25108bbd1980)] 1.12 +interface nsIDOMXULButtonElement : nsIDOMXULLabeledControlElement { 1.13 + const short CHECKSTATE_UNCHECKED = 0; 1.14 + const short CHECKSTATE_CHECKED = 1; 1.15 + const short CHECKSTATE_MIXED = 2; 1.16 + 1.17 + attribute DOMString type; 1.18 + attribute DOMString dlgType; 1.19 + 1.20 + // For buttons of type="menu" only. 1.21 + attribute boolean open; 1.22 + 1.23 + // For buttons of type="checkbox" only. 1.24 + attribute boolean checked; 1.25 + attribute long checkState; 1.26 + attribute boolean autoCheck; 1.27 + 1.28 + // For buttons of type="radio" only. 1.29 + attribute DOMString group; 1.30 +}; 1.31 +