dom/events/PointerEvent.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4 *
michael@0 5 * Portions Copyright 2013 Microsoft Open Technologies, Inc. */
michael@0 6
michael@0 7 #ifndef mozilla_dom_PointerEvent_h_
michael@0 8 #define mozilla_dom_PointerEvent_h_
michael@0 9
michael@0 10 #include "mozilla/dom/MouseEvent.h"
michael@0 11 #include "mozilla/dom/PointerEventBinding.h"
michael@0 12
michael@0 13 class nsPresContext;
michael@0 14
michael@0 15 namespace mozilla {
michael@0 16 namespace dom {
michael@0 17
michael@0 18 class PointerEvent : public MouseEvent
michael@0 19 {
michael@0 20 public:
michael@0 21 PointerEvent(EventTarget* aOwner,
michael@0 22 nsPresContext* aPresContext,
michael@0 23 WidgetPointerEvent* aEvent);
michael@0 24
michael@0 25 virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE
michael@0 26 {
michael@0 27 return PointerEventBinding::Wrap(aCx, this);
michael@0 28 }
michael@0 29
michael@0 30 static already_AddRefed<PointerEvent>
michael@0 31 Constructor(const GlobalObject& aGlobal,
michael@0 32 const nsAString& aType,
michael@0 33 const PointerEventInit& aParam,
michael@0 34 ErrorResult& aRv);
michael@0 35
michael@0 36 static already_AddRefed<PointerEvent>
michael@0 37 Constructor(EventTarget* aOwner,
michael@0 38 const nsAString& aType,
michael@0 39 const PointerEventInit& aParam);
michael@0 40
michael@0 41 int32_t PointerId();
michael@0 42 int32_t Width();
michael@0 43 int32_t Height();
michael@0 44 float Pressure();
michael@0 45 int32_t TiltX();
michael@0 46 int32_t TiltY();
michael@0 47 bool IsPrimary();
michael@0 48 void GetPointerType(nsAString& aPointerType);
michael@0 49 };
michael@0 50
michael@0 51 } // namespace dom
michael@0 52 } // namespace mozilla
michael@0 53
michael@0 54 #endif // mozilla_dom_PointerEvent_h_

mercurial