Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/GridLine.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
#ifndef mozilla_dom_GridLine_h
8
#define mozilla_dom_GridLine_h
9
10
#include "mozilla/dom/GridBinding.h"
11
#include "nsString.h"
12
#include "nsTArray.h"
13
#include "nsWrapperCache.h"
14
15
namespace mozilla {
16
namespace dom {
17
18
class GridLines;
19
20
class GridLine : public nsISupports
21
               , public nsWrapperCache
22
{
23
public:
24
  explicit GridLine(GridLines* aParent);
25
26
protected:
27
  virtual ~GridLine();
28
29
public:
30
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
31
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(GridLine)
32
33
  void GetNames(nsTArray<nsString>& aNames) const;
34
35
  virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
36
  GridLines* GetParentObject()
37
0
  {
38
0
    return mParent;
39
0
  }
40
41
  double Start() const;
42
  double Breadth() const;
43
  GridDeclaration Type() const;
44
  uint32_t Number() const;
45
  int32_t NegativeNumber() const;
46
47
  void SetLineValues(const nsTArray<nsString>& aNames,
48
                     double aStart,
49
                     double aBreadth,
50
                     uint32_t aNumber,
51
                     int32_t aNegativeNumber,
52
                     GridDeclaration aType);
53
54
protected:
55
  RefPtr<GridLines> mParent;
56
  nsTArray<nsString> mNames;
57
  double mStart;
58
  double mBreadth;
59
  GridDeclaration mType;
60
  uint32_t mNumber;
61
  int32_t mNegativeNumber;
62
};
63
64
} // namespace dom
65
} // namespace mozilla
66
67
#endif /* mozilla_dom_GridLine_h */