LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - PointerEventBinding.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM PointerEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_PointerEventBinding_h
       4             : #define mozilla_dom_PointerEventBinding_h
       5             : 
       6             : #include "MouseEventBinding.h"
       7             : #include "js/RootingAPI.h"
       8             : #include "jspubtd.h"
       9             : #include "mozilla/ErrorResult.h"
      10             : #include "mozilla/dom/BindingDeclarations.h"
      11             : #include "mozilla/dom/EventTarget.h"
      12             : #include "mozilla/dom/Nullable.h"
      13             : #include "nsGlobalWindow.h"
      14             : 
      15             : class nsGlobalWindow;
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : 
      20             : class EventTarget;
      21             : struct NativePropertyHooks;
      22             : class PointerEvent;
      23             : struct PointerEventAtoms;
      24             : struct PointerEventInitAtoms;
      25             : class ProtoAndIfaceCache;
      26             : 
      27             : } // namespace dom
      28             : } // namespace mozilla
      29             : 
      30             : namespace mozilla {
      31             : namespace dom {
      32             : 
      33           0 : struct PointerEventInit : public MouseEventInit
      34             : {
      35             :   MOZ_INIT_OUTSIDE_CTOR int32_t mHeight;
      36             :   MOZ_INIT_OUTSIDE_CTOR bool mIsPrimary;
      37             :   MOZ_INIT_OUTSIDE_CTOR int32_t mPointerId;
      38             :   MOZ_INIT_OUTSIDE_CTOR nsString mPointerType;
      39             :   MOZ_INIT_OUTSIDE_CTOR float mPressure;
      40             :   MOZ_INIT_OUTSIDE_CTOR float mTangentialPressure;
      41             :   MOZ_INIT_OUTSIDE_CTOR int32_t mTiltX;
      42             :   MOZ_INIT_OUTSIDE_CTOR int32_t mTiltY;
      43             :   MOZ_INIT_OUTSIDE_CTOR int32_t mTwist;
      44             :   MOZ_INIT_OUTSIDE_CTOR int32_t mWidth;
      45             : 
      46             :   PointerEventInit();
      47             : 
      48           0 :   explicit inline PointerEventInit(const FastDictionaryInitializer& )
      49           0 :     : MouseEventInit(FastDictionaryInitializer())
      50             :   {
      51             :     // Do nothing here; this is used by our "Fast" subclass
      52           0 :   }
      53             : 
      54             :   explicit inline PointerEventInit(const PointerEventInit& aOther)
      55             :   {
      56             :     *this = aOther;
      57             :   }
      58             : 
      59             :   bool
      60             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      61             : 
      62             :   bool
      63             :   Init(const nsAString& aJSON);
      64             : 
      65             :   bool
      66             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      67             : 
      68             :   bool
      69             :   ToJSON(nsAString& aJSON) const;
      70             : 
      71             :   void
      72             :   TraceDictionary(JSTracer* trc);
      73             : 
      74             :   PointerEventInit&
      75             :   operator=(const PointerEventInit& aOther);
      76             : 
      77             : private:
      78             :   static bool
      79             :   InitIds(JSContext* cx, PointerEventInitAtoms* atomsCache);
      80             : };
      81             : 
      82             : namespace binding_detail {
      83           0 : struct FastPointerEventInit : public PointerEventInit
      84             : {
      85           0 :   inline FastPointerEventInit()
      86           0 :     : PointerEventInit(FastDictionaryInitializer())
      87             :   {
      88             :     // Doesn't matter what int we pass to the parent constructor
      89           0 :   }
      90             : };
      91             : } // namespace binding_detail
      92             : 
      93             : 
      94             : namespace PointerEventBinding {
      95             : 
      96             :   typedef mozilla::dom::PointerEvent NativeType;
      97             : 
      98             :   bool
      99             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
     100             : 
     101             :   JSObject*
     102             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     103             : 
     104             :   const JSClass*
     105             :   GetJSClass();
     106             : 
     107             :   bool
     108             :   Wrap(JSContext* aCx, mozilla::dom::PointerEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     109             : 
     110             :   template <class T>
     111           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     112             :   {
     113           0 :     JS::Rooted<JSObject*> reflector(aCx);
     114           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     115             :   }
     116             : 
     117             :   // We declare this as an array so that retrieving a pointer to this
     118             :   // binding's property hooks only requires compile/link-time resolvable
     119             :   // address arithmetic.  Declaring it as a pointer instead would require
     120             :   // doing a run-time load to fetch a pointer to this binding's property
     121             :   // hooks.  And then structures which embedded a pointer to this structure
     122             :   // would require a run-time load for proper initialization, which would
     123             :   // then induce static constructors.  Lots of static constructors.
     124             :   extern const NativePropertyHooks sNativePropertyHooks[];
     125             : 
     126             :   void
     127             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     128             : 
     129             :   JS::Handle<JSObject*>
     130             :   GetProtoObjectHandle(JSContext* aCx);
     131             : 
     132             :   JS::Handle<JSObject*>
     133             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     134             : 
     135             :   JSObject*
     136             :   GetConstructorObject(JSContext* aCx);
     137             : 
     138             : } // namespace PointerEventBinding
     139             : 
     140             : 
     141             : 
     142             : } // namespace dom
     143             : } // namespace mozilla
     144             : 
     145             : #endif // mozilla_dom_PointerEventBinding_h

Generated by: LCOV version 1.13