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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM Element.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_ElementBinding_h
       4             : #define mozilla_dom_ElementBinding_h
       5             : 
       6             : #include "WindowBinding.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             : class Element;
      17             : struct ElementAtoms;
      18             : struct NativePropertyHooks;
      19             : class ProtoAndIfaceCache;
      20             : struct ScrollIntoViewOptionsAtoms;
      21             : 
      22             : } // namespace dom
      23             : } // namespace mozilla
      24             : 
      25             : namespace mozilla {
      26             : namespace dom {
      27             : 
      28             : enum class ScrollLogicalPosition : uint8_t {
      29             :   Start,
      30             :   End,
      31             :   EndGuard_
      32             : };
      33             : 
      34             : namespace ScrollLogicalPositionValues {
      35             : extern const EnumEntry strings[3];
      36             : } // namespace ScrollLogicalPositionValues
      37             : 
      38             : bool
      39             : ToJSValue(JSContext* aCx, ScrollLogicalPosition aArgument, JS::MutableHandle<JS::Value> aValue);
      40             : 
      41             : 
      42             : struct ScrollIntoViewOptions : public ScrollOptions
      43             : {
      44             :   MOZ_INIT_OUTSIDE_CTOR ScrollLogicalPosition mBlock;
      45             : 
      46             :   ScrollIntoViewOptions();
      47             : 
      48           0 :   explicit inline ScrollIntoViewOptions(const FastDictionaryInitializer& )
      49           0 :     : ScrollOptions(FastDictionaryInitializer())
      50             :   {
      51             :     // Do nothing here; this is used by our "Fast" subclass
      52           0 :   }
      53             : 
      54             :   explicit inline ScrollIntoViewOptions(const ScrollIntoViewOptions& 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             :   ScrollIntoViewOptions&
      75             :   operator=(const ScrollIntoViewOptions& aOther);
      76             : 
      77             : private:
      78             :   static bool
      79             :   InitIds(JSContext* cx, ScrollIntoViewOptionsAtoms* atomsCache);
      80             : };
      81             : 
      82             : namespace binding_detail {
      83             : struct FastScrollIntoViewOptions : public ScrollIntoViewOptions
      84             : {
      85           0 :   inline FastScrollIntoViewOptions()
      86           0 :     : ScrollIntoViewOptions(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 ElementBinding {
      95             : 
      96             :   typedef mozilla::dom::Element NativeType;
      97             : 
      98             :   JSObject*
      99             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     100             : 
     101             :   const JSClass*
     102             :   GetJSClass();
     103             : 
     104             :   bool
     105             :   Wrap(JSContext* aCx, mozilla::dom::Element* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     106             : 
     107             :   template <class T>
     108           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     109             :   {
     110           0 :     JS::Rooted<JSObject*> reflector(aCx);
     111           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     112             :   }
     113             : 
     114             :   // We declare this as an array so that retrieving a pointer to this
     115             :   // binding's property hooks only requires compile/link-time resolvable
     116             :   // address arithmetic.  Declaring it as a pointer instead would require
     117             :   // doing a run-time load to fetch a pointer to this binding's property
     118             :   // hooks.  And then structures which embedded a pointer to this structure
     119             :   // would require a run-time load for proper initialization, which would
     120             :   // then induce static constructors.  Lots of static constructors.
     121             :   extern const NativePropertyHooks sNativePropertyHooks[];
     122             : 
     123             :   void
     124             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     125             : 
     126             :   JS::Handle<JSObject*>
     127             :   GetProtoObjectHandle(JSContext* aCx);
     128             : 
     129             :   JSObject*
     130             :   GetProtoObject(JSContext* aCx);
     131             : 
     132             :   JS::Handle<JSObject*>
     133             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     134             : 
     135             :   JSObject*
     136             :   GetConstructorObject(JSContext* aCx);
     137             : 
     138             : } // namespace ElementBinding
     139             : 
     140             : 
     141             : 
     142             : } // namespace dom
     143             : } // namespace mozilla
     144             : 
     145             : #endif // mozilla_dom_ElementBinding_h

Generated by: LCOV version 1.13