/work/obj-fuzz/dist/include/mozilla/dom/ClipboardEvent.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_ClipboardEvent_h_ |
8 | | #define mozilla_dom_ClipboardEvent_h_ |
9 | | |
10 | | #include "mozilla/EventForwards.h" |
11 | | #include "mozilla/dom/ClipboardEventBinding.h" |
12 | | #include "mozilla/dom/Event.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | class DataTransfer; |
17 | | |
18 | | class ClipboardEvent : public Event |
19 | | { |
20 | | public: |
21 | | ClipboardEvent(EventTarget* aOwner, |
22 | | nsPresContext* aPresContext, |
23 | | InternalClipboardEvent* aEvent); |
24 | | |
25 | | NS_INLINE_DECL_REFCOUNTING_INHERITED(ClipboardEvent, Event) |
26 | | |
27 | | virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override |
28 | 0 | { |
29 | 0 | return ClipboardEvent_Binding::Wrap(aCx, this, aGivenProto); |
30 | 0 | } |
31 | | |
32 | | static already_AddRefed<ClipboardEvent> |
33 | | Constructor(const GlobalObject& aGlobal, |
34 | | const nsAString& aType, |
35 | | const ClipboardEventInit& aParam, |
36 | | ErrorResult& aRv); |
37 | | |
38 | | DataTransfer* GetClipboardData(); |
39 | | |
40 | | void InitClipboardEvent(const nsAString& aType, bool aCanBubble, |
41 | | bool aCancelable, |
42 | | DataTransfer* aClipboardData); |
43 | | |
44 | | protected: |
45 | 0 | ~ClipboardEvent() {} |
46 | | }; |
47 | | |
48 | | } // namespace dom |
49 | | } // namespace mozilla |
50 | | |
51 | | already_AddRefed<mozilla::dom::ClipboardEvent> |
52 | | NS_NewDOMClipboardEvent(mozilla::dom::EventTarget* aOwner, |
53 | | nsPresContext* aPresContext, |
54 | | mozilla::InternalClipboardEvent* aEvent); |
55 | | |
56 | | #endif // mozilla_dom_ClipboardEvent_h_ |