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: #ifndef nsIScrollbarMediator_h___ michael@0: #define nsIScrollbarMediator_h___ michael@0: michael@0: #include "nsQueryFrame.h" michael@0: michael@0: class nsScrollbarFrame; michael@0: michael@0: class nsIScrollbarMediator michael@0: { michael@0: public: michael@0: NS_DECL_QUERYFRAME_TARGET(nsIScrollbarMediator) michael@0: michael@0: // The aScrollbar argument denotes the scrollbar that's firing the notification. michael@0: NS_IMETHOD PositionChanged(nsScrollbarFrame* aScrollbar, int32_t aOldIndex, int32_t& aNewIndex) = 0; michael@0: NS_IMETHOD ScrollbarButtonPressed(nsScrollbarFrame* aScrollbar, int32_t aOldIndex, int32_t aNewIndex) = 0; michael@0: michael@0: NS_IMETHOD VisibilityChanged(bool aVisible) = 0; michael@0: }; michael@0: michael@0: #endif michael@0: