layout/xul/base/public/nsIScrollbarMediator.h
author Carsten "Tomcat" Book <cbook@mozilla.com>
Wed, 04 Dec 2013 09:23:39 +0100
changeset 174440 c18738d7ee310a617dd020baaa59fabfe7d82cbd
parent 174433 layout/xul/nsIScrollbarMediator.h@b5d2afd3716472ffd2c88a0055cf665391f5edb2
permissions -rw-r--r--
Backed out changeset b5d2afd37164 (bug 945091) for mochitest-8 bustage on a CLOSED TREE

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsIScrollbarMediator_h___
#define nsIScrollbarMediator_h___

#include "nsQueryFrame.h"

class nsScrollbarFrame;

class nsIScrollbarMediator
{
public:
  NS_DECL_QUERYFRAME_TARGET(nsIScrollbarMediator)

  // The aScrollbar argument denotes the scrollbar that's firing the notification.
  NS_IMETHOD PositionChanged(nsScrollbarFrame* aScrollbar, int32_t aOldIndex, int32_t& aNewIndex) = 0;
  NS_IMETHOD ScrollbarButtonPressed(nsScrollbarFrame* aScrollbar, int32_t aOldIndex, int32_t aNewIndex) = 0;

  NS_IMETHOD VisibilityChanged(bool aVisible) = 0;
};

#endif