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

Generated by: LCOV version 1.13