Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/xul/nsProgressMeterFrame.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
/**
8
9
  David Hyatt & Eric D Vaughan.
10
11
  An XBL-based progress meter.
12
13
  Attributes:
14
15
  value: A number between 0% and 100%
16
  align: horizontal or vertical
17
  mode: determined, undetermined (one shows progress other shows animated candy cane)
18
19
**/
20
21
#include "mozilla/Attributes.h"
22
#include "nsBoxFrame.h"
23
24
class nsProgressMeterFrame final : public nsBoxFrame
25
{
26
public:
27
  NS_DECL_FRAMEARENA_HELPERS(nsProgressMeterFrame)
28
29
  friend nsIFrame* NS_NewProgressMeterFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle);
30
31
  NS_IMETHOD DoXULLayout(nsBoxLayoutState& aBoxLayoutState) override;
32
33
  virtual nsresult AttributeChanged(int32_t aNameSpaceID,
34
                                    nsAtom* aAttribute,
35
                                    int32_t aModType) override;
36
37
#ifdef DEBUG_FRAME_DUMP
38
  virtual nsresult GetFrameName(nsAString& aResult) const override;
39
#endif
40
41
protected:
42
  explicit nsProgressMeterFrame(ComputedStyle* aStyle) :
43
0
    nsBoxFrame(aStyle, kClassID), mNeedsReflowCallback(true) {}
44
  virtual ~nsProgressMeterFrame();
45
46
  bool mNeedsReflowCallback;
47
}; // class nsProgressMeterFrame