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 nsIScrollbarOwner_h___ michael@0: #define nsIScrollbarOwner_h___ michael@0: michael@0: #include "nsQueryFrame.h" michael@0: michael@0: class nsIDOMEventTarget; michael@0: class nsIFrame; michael@0: michael@0: /** michael@0: * An interface that represents a frame which manages scrollbars. michael@0: */ michael@0: class nsIScrollbarOwner : public nsQueryFrame { michael@0: public: michael@0: NS_DECL_QUERYFRAME_TARGET(nsIScrollbarOwner) michael@0: michael@0: /** michael@0: * Obtain the frame for the horizontal or vertical scrollbar, or null michael@0: * if there is no such box. michael@0: */ michael@0: virtual nsIFrame* GetScrollbarBox(bool aVertical) = 0; michael@0: michael@0: /** michael@0: * Show or hide scrollbars on 2 fingers touch. michael@0: * Subclasses should call their ScrollbarActivity's corresponding methods. michael@0: */ michael@0: virtual void ScrollbarActivityStarted() const = 0; michael@0: virtual void ScrollbarActivityStopped() const = 0; michael@0: }; michael@0: michael@0: #endif