Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/CommandEvent.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_CommandEvent_h_
8
#define mozilla_dom_CommandEvent_h_
9
10
#include "mozilla/EventForwards.h"
11
#include "mozilla/dom/CommandEventBinding.h"
12
#include "mozilla/dom/Event.h"
13
14
namespace mozilla {
15
namespace dom {
16
17
class CommandEvent : public Event
18
{
19
public:
20
  CommandEvent(EventTarget* aOwner,
21
               nsPresContext* aPresContext,
22
               WidgetCommandEvent* aEvent);
23
24
  NS_INLINE_DECL_REFCOUNTING_INHERITED(CommandEvent, Event)
25
26
  virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
27
0
  {
28
0
    return CommandEvent_Binding::Wrap(aCx, this, aGivenProto);
29
0
  }
30
31
  void GetCommand(nsAString& aCommand);
32
33
protected:
34
0
  ~CommandEvent() {}
35
};
36
37
} // namespace dom
38
} // namespace mozilla
39
40
already_AddRefed<mozilla::dom::CommandEvent>
41
NS_NewDOMCommandEvent(mozilla::dom::EventTarget* aOwner,
42
                      nsPresContext* aPresContext,
43
                      mozilla::WidgetCommandEvent* aEvent);
44
45
#endif // mozilla_dom_CommandEvent_h_