/work/obj-fuzz/dist/include/mozilla/dom/MouseScrollEvent.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_MouseScrollEvent_h_ |
8 | | #define mozilla_dom_MouseScrollEvent_h_ |
9 | | |
10 | | #include "mozilla/dom/MouseEvent.h" |
11 | | #include "mozilla/dom/MouseScrollEventBinding.h" |
12 | | |
13 | | namespace mozilla { |
14 | | namespace dom { |
15 | | |
16 | | class MouseScrollEvent : public MouseEvent |
17 | | { |
18 | | public: |
19 | | MouseScrollEvent(EventTarget* aOwner, |
20 | | nsPresContext* aPresContext, |
21 | | WidgetMouseScrollEvent* aEvent); |
22 | | |
23 | | NS_INLINE_DECL_REFCOUNTING_INHERITED(MouseScrollEvent, MouseEvent) |
24 | | |
25 | | virtual JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override |
26 | 0 | { |
27 | 0 | return MouseScrollEvent_Binding::Wrap(aCx, this, aGivenProto); |
28 | 0 | } |
29 | | |
30 | | int32_t Axis(); |
31 | | |
32 | | void InitMouseScrollEvent(const nsAString& aType, bool aCanBubble, |
33 | | bool aCancelable, nsGlobalWindowInner* aView, |
34 | | int32_t aDetail, int32_t aScreenX, int32_t aScreenY, |
35 | | int32_t aClientX, int32_t aClientY, |
36 | | bool aCtrlKey, bool aAltKey, bool aShiftKey, |
37 | | bool aMetaKey, uint16_t aButton, |
38 | | EventTarget* aRelatedTarget, |
39 | | int32_t aAxis); |
40 | | |
41 | | protected: |
42 | 0 | ~MouseScrollEvent() {} |
43 | | }; |
44 | | |
45 | | } // namespace dom |
46 | | } // namespace mozilla |
47 | | |
48 | | already_AddRefed<mozilla::dom::MouseScrollEvent> |
49 | | NS_NewDOMMouseScrollEvent(mozilla::dom::EventTarget* aOwner, |
50 | | nsPresContext* aPresContext, |
51 | | mozilla::WidgetMouseScrollEvent* aEvent); |
52 | | |
53 | | #endif // mozilla_dom_MouseScrollEvent_h_ |