michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * Used for to listen to slider changes to avoid mutation listeners michael@0: */ michael@0: [scriptable, uuid(e5b3074e-ee18-4538-83b9-2487d90a2a34)] michael@0: interface nsISliderListener : nsISupports michael@0: { michael@0: /** michael@0: * Called when the current, minimum or maximum value has been changed to michael@0: * newValue. The which parameter will either be 'curpos', 'minpos' or 'maxpos'. michael@0: * If userChanged is true, then the user changed ths slider, otherwise it michael@0: * was changed via some other means. michael@0: */ michael@0: void valueChanged(in AString which, in long newValue, in boolean userChanged); michael@0: michael@0: /** michael@0: * Called when the user begins or ends dragging the thumb. michael@0: */ michael@0: void dragStateChanged(in boolean isDragging); michael@0: };