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

Generated by: LCOV version 1.13