1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/nsISliderListener.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 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 +/** 1.12 + * Used for <scale> to listen to slider changes to avoid mutation listeners 1.13 + */ 1.14 +[scriptable, uuid(e5b3074e-ee18-4538-83b9-2487d90a2a34)] 1.15 +interface nsISliderListener : nsISupports 1.16 +{ 1.17 + /** 1.18 + * Called when the current, minimum or maximum value has been changed to 1.19 + * newValue. The which parameter will either be 'curpos', 'minpos' or 'maxpos'. 1.20 + * If userChanged is true, then the user changed ths slider, otherwise it 1.21 + * was changed via some other means. 1.22 + */ 1.23 + void valueChanged(in AString which, in long newValue, in boolean userChanged); 1.24 + 1.25 + /** 1.26 + * Called when the user begins or ends dragging the thumb. 1.27 + */ 1.28 + void dragStateChanged(in boolean isDragging); 1.29 +};