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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM Node.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_NodeBinding_h
       4             : #define mozilla_dom_NodeBinding_h
       5             : 
       6             : #include "js/RootingAPI.h"
       7             : #include "jspubtd.h"
       8             : #include "mozilla/ErrorResult.h"
       9             : #include "mozilla/dom/BindingDeclarations.h"
      10             : #include "mozilla/dom/Nullable.h"
      11             : 
      12             : class nsINode;
      13             : struct nsINodeAtoms;
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : 
      18             : struct GetRootNodeOptionsAtoms;
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : struct GetRootNodeOptions : public DictionaryBase
      29             : {
      30             :   MOZ_INIT_OUTSIDE_CTOR bool mComposed;
      31             : 
      32             :   GetRootNodeOptions();
      33             : 
      34           0 :   explicit inline GetRootNodeOptions(const FastDictionaryInitializer& )
      35           0 :   {
      36             :     // Do nothing here; this is used by our "Fast" subclass
      37           0 :   }
      38             : 
      39             :   explicit inline GetRootNodeOptions(const GetRootNodeOptions& aOther)
      40             :   {
      41             :     *this = aOther;
      42             :   }
      43             : 
      44             :   bool
      45             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      46             : 
      47             :   bool
      48             :   Init(const nsAString& aJSON);
      49             : 
      50             :   bool
      51             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      52             : 
      53             :   bool
      54             :   ToJSON(nsAString& aJSON) const;
      55             : 
      56             :   void
      57             :   TraceDictionary(JSTracer* trc);
      58             : 
      59             :   GetRootNodeOptions&
      60             :   operator=(const GetRootNodeOptions& aOther);
      61             : 
      62             : private:
      63             :   static bool
      64             :   InitIds(JSContext* cx, GetRootNodeOptionsAtoms* atomsCache);
      65             : };
      66             : 
      67             : namespace binding_detail {
      68             : struct FastGetRootNodeOptions : public GetRootNodeOptions
      69             : {
      70           0 :   inline FastGetRootNodeOptions()
      71           0 :     : GetRootNodeOptions(FastDictionaryInitializer())
      72             :   {
      73             :     // Doesn't matter what int we pass to the parent constructor
      74           0 :   }
      75             : };
      76             : } // namespace binding_detail
      77             : 
      78             : 
      79             : namespace NodeBinding {
      80             : 
      81             :   typedef nsINode NativeType;
      82             : 
      83             :   JSObject*
      84             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      85             : 
      86             :   // We declare this as an array so that retrieving a pointer to this
      87             :   // binding's property hooks only requires compile/link-time resolvable
      88             :   // address arithmetic.  Declaring it as a pointer instead would require
      89             :   // doing a run-time load to fetch a pointer to this binding's property
      90             :   // hooks.  And then structures which embedded a pointer to this structure
      91             :   // would require a run-time load for proper initialization, which would
      92             :   // then induce static constructors.  Lots of static constructors.
      93             :   extern const NativePropertyHooks sNativePropertyHooks[];
      94             : 
      95             :   void
      96             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      97             : 
      98             :   JS::Handle<JSObject*>
      99             :   GetProtoObjectHandle(JSContext* aCx);
     100             : 
     101             :   JSObject*
     102             :   GetProtoObject(JSContext* aCx);
     103             : 
     104             :   JS::Handle<JSObject*>
     105             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     106             : 
     107             :   JSObject*
     108             :   GetConstructorObject(JSContext* aCx);
     109             : 
     110             : } // namespace NodeBinding
     111             : 
     112             : 
     113             : 
     114             : } // namespace dom
     115             : } // namespace mozilla
     116             : 
     117             : #endif // mozilla_dom_NodeBinding_h

Generated by: LCOV version 1.13