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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM HTMLInputElement.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_HTMLInputElementBinding_h
       4             : #define mozilla_dom_HTMLInputElementBinding_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             : namespace mozilla {
      13             : namespace dom {
      14             : 
      15             : struct DateTimeValueAtoms;
      16             : class HTMLInputElement;
      17             : struct HTMLInputElementAtoms;
      18             : struct NativePropertyHooks;
      19             : class ProtoAndIfaceCache;
      20             : 
      21             : } // namespace dom
      22             : } // namespace mozilla
      23             : 
      24             : namespace mozilla {
      25             : namespace dom {
      26             : 
      27             : enum class SelectionMode : uint8_t {
      28             :   Select,
      29             :   Start,
      30             :   End,
      31             :   Preserve,
      32             :   EndGuard_
      33             : };
      34             : 
      35             : namespace SelectionModeValues {
      36             : extern const EnumEntry strings[5];
      37             : } // namespace SelectionModeValues
      38             : 
      39             : bool
      40             : ToJSValue(JSContext* aCx, SelectionMode aArgument, JS::MutableHandle<JS::Value> aValue);
      41             : 
      42             : 
      43           0 : struct DateTimeValue : public DictionaryBase
      44             : {
      45             :   MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mDay;
      46             :   MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mHour;
      47             :   MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mMinute;
      48             :   MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mMonth;
      49             :   MOZ_INIT_OUTSIDE_CTOR Optional<int32_t> mYear;
      50             : 
      51             :   DateTimeValue();
      52             : 
      53           0 :   explicit inline DateTimeValue(const FastDictionaryInitializer& )
      54           0 :   {
      55             :     // Do nothing here; this is used by our "Fast" subclass
      56           0 :   }
      57             : 
      58           0 :   explicit inline DateTimeValue(const DateTimeValue& aOther)
      59           0 :   {
      60           0 :     *this = aOther;
      61           0 :   }
      62             : 
      63             :   bool
      64             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      65             : 
      66             :   bool
      67             :   Init(const nsAString& aJSON);
      68             : 
      69             :   bool
      70             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      71             : 
      72             :   bool
      73             :   ToJSON(nsAString& aJSON) const;
      74             : 
      75             :   void
      76             :   TraceDictionary(JSTracer* trc);
      77             : 
      78             :   DateTimeValue&
      79             :   operator=(const DateTimeValue& aOther);
      80             : 
      81             : private:
      82             :   static bool
      83             :   InitIds(JSContext* cx, DateTimeValueAtoms* atomsCache);
      84             : };
      85             : 
      86             : namespace binding_detail {
      87           0 : struct FastDateTimeValue : public DateTimeValue
      88             : {
      89           0 :   inline FastDateTimeValue()
      90           0 :     : DateTimeValue(FastDictionaryInitializer())
      91             :   {
      92             :     // Doesn't matter what int we pass to the parent constructor
      93           0 :   }
      94             : };
      95             : } // namespace binding_detail
      96             : 
      97             : 
      98             : namespace HTMLInputElementBinding {
      99             : 
     100             :   typedef mozilla::dom::HTMLInputElement NativeType;
     101             : 
     102             :   JSObject*
     103             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     104             : 
     105             :   const JSClass*
     106             :   GetJSClass();
     107             : 
     108             :   bool
     109             :   Wrap(JSContext* aCx, mozilla::dom::HTMLInputElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     110             : 
     111             :   template <class T>
     112           2 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     113             :   {
     114           4 :     JS::Rooted<JSObject*> reflector(aCx);
     115           4 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     116             :   }
     117             : 
     118             :   // We declare this as an array so that retrieving a pointer to this
     119             :   // binding's property hooks only requires compile/link-time resolvable
     120             :   // address arithmetic.  Declaring it as a pointer instead would require
     121             :   // doing a run-time load to fetch a pointer to this binding's property
     122             :   // hooks.  And then structures which embedded a pointer to this structure
     123             :   // would require a run-time load for proper initialization, which would
     124             :   // then induce static constructors.  Lots of static constructors.
     125             :   extern const NativePropertyHooks sNativePropertyHooks[];
     126             : 
     127             :   void
     128             :   ClearCachedWebkitEntriesValue(mozilla::dom::HTMLInputElement* aObject);
     129             : 
     130             :   void
     131             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     132             : 
     133             :   JS::Handle<JSObject*>
     134             :   GetProtoObjectHandle(JSContext* aCx);
     135             : 
     136             :   JS::Handle<JSObject*>
     137             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     138             : 
     139             :   JSObject*
     140             :   GetConstructorObject(JSContext* aCx);
     141             : 
     142             : } // namespace HTMLInputElementBinding
     143             : 
     144             : 
     145             : 
     146             : } // namespace dom
     147             : } // namespace mozilla
     148             : 
     149             : #endif // mozilla_dom_HTMLInputElementBinding_h

Generated by: LCOV version 1.13