/work/obj-fuzz/dist/include/mozilla/dom/InputEvent.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_InputEvent_h_ |
8 | | #define mozilla_dom_InputEvent_h_ |
9 | | |
10 | | #include "mozilla/dom/UIEvent.h" |
11 | | #include "mozilla/dom/InputEventBinding.h" |
12 | | #include "mozilla/EventForwards.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class InputEvent : public UIEvent |
18 | | { |
19 | | public: |
20 | | InputEvent(EventTarget* aOwner, |
21 | | nsPresContext* aPresContext, |
22 | | InternalEditorInputEvent* aEvent); |
23 | | |
24 | | NS_INLINE_DECL_REFCOUNTING_INHERITED(InputEvent, UIEvent) |
25 | | |
26 | | static already_AddRefed<InputEvent> Constructor(const GlobalObject& aGlobal, |
27 | | const nsAString& aType, |
28 | | const InputEventInit& aParam, |
29 | | ErrorResult& aRv); |
30 | | |
31 | | virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override |
32 | 0 | { |
33 | 0 | return InputEvent_Binding::Wrap(aCx, this, aGivenProto); |
34 | 0 | } |
35 | | |
36 | | bool IsComposing(); |
37 | | |
38 | | protected: |
39 | 0 | ~InputEvent() {} |
40 | | }; |
41 | | |
42 | | } // namespace dom |
43 | | } // namespace mozilla |
44 | | |
45 | | already_AddRefed<mozilla::dom::InputEvent> |
46 | | NS_NewDOMInputEvent(mozilla::dom::EventTarget* aOwner, |
47 | | nsPresContext* aPresContext, |
48 | | mozilla::InternalEditorInputEvent* aEvent); |
49 | | |
50 | | #endif // mozilla_dom_InputEvent_h_ |