LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - PerformanceEntryEventBinding.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 PerformanceEntryEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_PerformanceEntryEventBinding_h
       4             : #define mozilla_dom_PerformanceEntryEventBinding_h
       5             : 
       6             : #include "EventBinding.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/Nullable.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16             : struct NativePropertyHooks;
      17             : class PerformanceEntryEvent;
      18             : struct PerformanceEntryEventAtoms;
      19             : struct PerformanceEntryEventInitAtoms;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28           0 : struct PerformanceEntryEventInit : public EventInit
      29             : {
      30             :   MOZ_INIT_OUTSIDE_CTOR double mDuration;
      31             :   MOZ_INIT_OUTSIDE_CTOR nsString mEntryType;
      32             :   MOZ_INIT_OUTSIDE_CTOR double mEpoch;
      33             :   MOZ_INIT_OUTSIDE_CTOR nsString mName;
      34             :   MOZ_INIT_OUTSIDE_CTOR nsString mOrigin;
      35             :   MOZ_INIT_OUTSIDE_CTOR double mStartTime;
      36             : 
      37             :   PerformanceEntryEventInit();
      38             : 
      39           0 :   explicit inline PerformanceEntryEventInit(const FastDictionaryInitializer& )
      40           0 :     : EventInit(FastDictionaryInitializer())
      41             :   {
      42             :     // Do nothing here; this is used by our "Fast" subclass
      43           0 :   }
      44             : 
      45             :   explicit inline PerformanceEntryEventInit(const PerformanceEntryEventInit& aOther)
      46             :   {
      47             :     *this = aOther;
      48             :   }
      49             : 
      50             :   bool
      51             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      52             : 
      53             :   bool
      54             :   Init(const nsAString& aJSON);
      55             : 
      56             :   bool
      57             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      58             : 
      59             :   bool
      60             :   ToJSON(nsAString& aJSON) const;
      61             : 
      62             :   void
      63             :   TraceDictionary(JSTracer* trc);
      64             : 
      65             :   PerformanceEntryEventInit&
      66             :   operator=(const PerformanceEntryEventInit& aOther);
      67             : 
      68             : private:
      69             :   static bool
      70             :   InitIds(JSContext* cx, PerformanceEntryEventInitAtoms* atomsCache);
      71             : };
      72             : 
      73             : namespace binding_detail {
      74           0 : struct FastPerformanceEntryEventInit : public PerformanceEntryEventInit
      75             : {
      76           0 :   inline FastPerformanceEntryEventInit()
      77           0 :     : PerformanceEntryEventInit(FastDictionaryInitializer())
      78             :   {
      79             :     // Doesn't matter what int we pass to the parent constructor
      80           0 :   }
      81             : };
      82             : } // namespace binding_detail
      83             : 
      84             : 
      85             : namespace PerformanceEntryEventBinding {
      86             : 
      87             :   typedef mozilla::dom::PerformanceEntryEvent NativeType;
      88             : 
      89             :   bool
      90             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      91             : 
      92             :   JSObject*
      93             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      94             : 
      95             :   const JSClass*
      96             :   GetJSClass();
      97             : 
      98             :   bool
      99             :   Wrap(JSContext* aCx, mozilla::dom::PerformanceEntryEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     100             : 
     101             :   template <class T>
     102           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     103             :   {
     104           0 :     JS::Rooted<JSObject*> reflector(aCx);
     105           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     106             :   }
     107             : 
     108             :   // We declare this as an array so that retrieving a pointer to this
     109             :   // binding's property hooks only requires compile/link-time resolvable
     110             :   // address arithmetic.  Declaring it as a pointer instead would require
     111             :   // doing a run-time load to fetch a pointer to this binding's property
     112             :   // hooks.  And then structures which embedded a pointer to this structure
     113             :   // would require a run-time load for proper initialization, which would
     114             :   // then induce static constructors.  Lots of static constructors.
     115             :   extern const NativePropertyHooks sNativePropertyHooks[];
     116             : 
     117             :   void
     118             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     119             : 
     120             :   JS::Handle<JSObject*>
     121             :   GetProtoObjectHandle(JSContext* aCx);
     122             : 
     123             :   JS::Handle<JSObject*>
     124             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     125             : 
     126             :   JSObject*
     127             :   GetConstructorObject(JSContext* aCx);
     128             : 
     129             : } // namespace PerformanceEntryEventBinding
     130             : 
     131             : 
     132             : 
     133             : } // namespace dom
     134             : } // namespace mozilla
     135             : 
     136             : #endif // mozilla_dom_PerformanceEntryEventBinding_h

Generated by: LCOV version 1.13