1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/nsProgressMeterFrame.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +/** 1.10 + 1.11 + David Hyatt & Eric D Vaughan. 1.12 + 1.13 + An XBL-based progress meter. 1.14 + 1.15 + Attributes: 1.16 + 1.17 + value: A number between 0% and 100% 1.18 + align: horizontal or vertical 1.19 + mode: determined, undetermined (one shows progress other shows animated candy cane) 1.20 + 1.21 +**/ 1.22 + 1.23 +#include "mozilla/Attributes.h" 1.24 +#include "nsBoxFrame.h" 1.25 + 1.26 +class nsProgressMeterFrame : public nsBoxFrame 1.27 +{ 1.28 +public: 1.29 + NS_DECL_FRAMEARENA_HELPERS 1.30 + 1.31 + friend nsIFrame* NS_NewProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); 1.32 + 1.33 + NS_IMETHOD DoLayout(nsBoxLayoutState& aBoxLayoutState) MOZ_OVERRIDE; 1.34 + 1.35 + virtual nsresult AttributeChanged(int32_t aNameSpaceID, 1.36 + nsIAtom* aAttribute, 1.37 + int32_t aModType) MOZ_OVERRIDE; 1.38 + 1.39 +#ifdef DEBUG_FRAME_DUMP 1.40 + virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE; 1.41 +#endif 1.42 + 1.43 +protected: 1.44 + nsProgressMeterFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) : 1.45 + nsBoxFrame(aPresShell, aContext), mNeedsReflowCallback(true) {} 1.46 + virtual ~nsProgressMeterFrame(); 1.47 + 1.48 + bool mNeedsReflowCallback; 1.49 +}; // class nsProgressMeterFrame