Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/xul/XULScrollElement.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 XULScrollElement_h__
8
#define XULScrollElement_h__
9
10
#include "nsXULElement.h"
11
#include "Units.h"
12
13
namespace mozilla {
14
namespace dom {
15
16
17
class XULScrollElement final : public nsXULElement
18
{
19
public:
20
  explicit XULScrollElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
21
    : nsXULElement(std::move(aNodeInfo))
22
0
  {
23
0
  }
24
25
  MOZ_CAN_RUN_SCRIPT void ScrollByIndex(int32_t aIndex, ErrorResult& aRv);
26
  MOZ_CAN_RUN_SCRIPT void EnsureElementIsVisible(Element& aChild, ErrorResult& aRv);
27
  MOZ_CAN_RUN_SCRIPT void ScrollToElement(Element& child, ErrorResult& aRv);
28
29
protected:
30
  virtual ~XULScrollElement() {}
31
  JSObject* WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto) final;
32
};
33
34
} // namespace dom
35
} // namespace mozilla
36
37
#endif // XULScrollElement_h