gecko-dev/layout/xul/nsProgressMeterFrame.h

47 lines
1.4 KiB
C
Raw Normal View History

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2012-05-21 11:12:37 +00:00
/* 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/. */
1999-02-04 01:34:15 +00:00
/**
2000-03-15 03:16:43 +00:00
David Hyatt & Eric D Vaughan.
1999-02-04 01:34:15 +00:00
2000-03-15 03:16:43 +00:00
An XBL-based progress meter.
1999-02-04 01:34:15 +00:00
Attributes:
2000-03-15 03:16:43 +00:00
value: A number between 0% and 100%
align: horizontal or vertical
1999-02-04 01:34:15 +00:00
mode: determined, undetermined (one shows progress other shows animated candy cane)
**/
#include "mozilla/Attributes.h"
2000-03-15 03:16:43 +00:00
#include "nsBoxFrame.h"
2000-03-15 03:16:43 +00:00
class nsProgressMeterFrame : public nsBoxFrame
1999-02-04 01:34:15 +00:00
{
public:
NS_DECL_FRAMEARENA_HELPERS
friend nsIFrame* NS_NewProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
1999-02-04 01:34:15 +00:00
NS_IMETHOD DoLayout(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
1999-02-04 01:34:15 +00:00
virtual nsresult AttributeChanged(int32_t aNameSpaceID,
nsIAtom* aAttribute,
int32_t aModType) MOZ_OVERRIDE;
1999-02-04 01:34:15 +00:00
#ifdef DEBUG_FRAME_DUMP
virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE;
#endif
1999-02-04 01:34:15 +00:00
protected:
nsProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) :
nsBoxFrame(aPresShell, aContext), mNeedsReflowCallback(true) {}
1999-02-04 01:34:15 +00:00
virtual ~nsProgressMeterFrame();
2007-10-05 19:06:54 +00:00
bool mNeedsReflowCallback;
1999-02-04 01:34:15 +00:00
}; // class nsProgressMeterFrame