2001-09-28 20:14:13 +00:00
|
|
|
/* -*- 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)
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2000-03-15 03:16:43 +00:00
|
|
|
#include "nsBoxFrame.h"
|
1999-02-19 02:54:53 +00:00
|
|
|
|
2000-03-15 03:16:43 +00:00
|
|
|
class nsProgressMeterFrame : public nsBoxFrame
|
1999-02-04 01:34:15 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-26 21:30:36 +00:00
|
|
|
friend nsIFrame* NS_NewProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
1999-02-04 01:34:15 +00:00
|
|
|
|
2013-05-14 16:33:23 +00:00
|
|
|
NS_IMETHOD DoLayout(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE;
|
1999-02-04 01:34:15 +00:00
|
|
|
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult AttributeChanged(int32_t aNameSpaceID,
|
2014-02-18 08:36:33 +00:00
|
|
|
nsIAtom* aAttribute,
|
|
|
|
int32_t aModType) MOZ_OVERRIDE;
|
1999-02-04 01:34:15 +00:00
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE;
|
2000-04-11 23:55:15 +00:00
|
|
|
#endif
|
|
|
|
|
1999-02-04 01:34:15 +00:00
|
|
|
protected:
|
2006-03-26 21:30:36 +00:00
|
|
|
nsProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) :
|
2011-10-17 14:59:28 +00:00
|
|
|
nsBoxFrame(aPresShell, aContext), mNeedsReflowCallback(true) {}
|
1999-02-04 01:34:15 +00:00
|
|
|
virtual ~nsProgressMeterFrame();
|
2007-10-05 19:06:54 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
bool mNeedsReflowCallback;
|
1999-02-04 01:34:15 +00:00
|
|
|
}; // class nsProgressMeterFrame
|