LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - CaretStateChangedEventBinding.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 CaretStateChangedEvent.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_CaretStateChangedEventBinding_h
       4             : #define mozilla_dom_CaretStateChangedEventBinding_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/DOMRect.h"
      12             : #include "mozilla/dom/Nullable.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : class CaretStateChangedEvent;
      18             : struct CaretStateChangedEventAtoms;
      19             : struct CaretStateChangedEventInitAtoms;
      20             : class DOMRectReadOnly;
      21             : struct NativePropertyHooks;
      22             : class ProtoAndIfaceCache;
      23             : 
      24             : } // namespace dom
      25             : } // namespace mozilla
      26             : 
      27             : namespace mozilla {
      28             : namespace dom {
      29             : 
      30             : enum class CaretChangedReason : uint8_t {
      31             :   Visibilitychange,
      32             :   Updateposition,
      33             :   Longpressonemptycontent,
      34             :   Taponcaret,
      35             :   Presscaret,
      36             :   Releasecaret,
      37             :   Scroll,
      38             :   EndGuard_
      39             : };
      40             : 
      41             : namespace CaretChangedReasonValues {
      42             : extern const EnumEntry strings[8];
      43             : } // namespace CaretChangedReasonValues
      44             : 
      45             : bool
      46             : ToJSValue(JSContext* aCx, CaretChangedReason aArgument, JS::MutableHandle<JS::Value> aValue);
      47             : 
      48             : 
      49           0 : struct CaretStateChangedEventInit : public EventInit
      50             : {
      51             :   MOZ_INIT_OUTSIDE_CTOR RefPtr<mozilla::dom::DOMRectReadOnly> mBoundingClientRect;
      52             :   MOZ_INIT_OUTSIDE_CTOR bool mCaretVisible;
      53             :   MOZ_INIT_OUTSIDE_CTOR bool mCaretVisuallyVisible;
      54             :   MOZ_INIT_OUTSIDE_CTOR bool mCollapsed;
      55             :   MOZ_INIT_OUTSIDE_CTOR CaretChangedReason mReason;
      56             :   MOZ_INIT_OUTSIDE_CTOR nsString mSelectedTextContent;
      57             :   MOZ_INIT_OUTSIDE_CTOR bool mSelectionEditable;
      58             :   MOZ_INIT_OUTSIDE_CTOR bool mSelectionVisible;
      59             : 
      60             :   CaretStateChangedEventInit();
      61             : 
      62           0 :   explicit inline CaretStateChangedEventInit(const FastDictionaryInitializer& )
      63           0 :     : EventInit(FastDictionaryInitializer())
      64             :   {
      65             :     // Do nothing here; this is used by our "Fast" subclass
      66           0 :   }
      67             : 
      68             :   explicit inline CaretStateChangedEventInit(const CaretStateChangedEventInit& aOther)
      69             :   {
      70             :     *this = aOther;
      71             :   }
      72             : 
      73             :   bool
      74             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      75             : 
      76             :   bool
      77             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      78             : 
      79             :   void
      80             :   TraceDictionary(JSTracer* trc);
      81             : 
      82             :   CaretStateChangedEventInit&
      83             :   operator=(const CaretStateChangedEventInit& aOther);
      84             : 
      85             : private:
      86             :   static bool
      87             :   InitIds(JSContext* cx, CaretStateChangedEventInitAtoms* atomsCache);
      88             : };
      89             : 
      90             : namespace binding_detail {
      91           0 : struct FastCaretStateChangedEventInit : public CaretStateChangedEventInit
      92             : {
      93           0 :   inline FastCaretStateChangedEventInit()
      94           0 :     : CaretStateChangedEventInit(FastDictionaryInitializer())
      95             :   {
      96             :     // Doesn't matter what int we pass to the parent constructor
      97           0 :   }
      98             : };
      99             : } // namespace binding_detail
     100             : 
     101             : 
     102             : namespace CaretStateChangedEventBinding {
     103             : 
     104             :   typedef mozilla::dom::CaretStateChangedEvent NativeType;
     105             : 
     106             :   bool
     107             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
     108             : 
     109             :   JSObject*
     110             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
     111             : 
     112             :   const JSClass*
     113             :   GetJSClass();
     114             : 
     115             :   bool
     116             :   Wrap(JSContext* aCx, mozilla::dom::CaretStateChangedEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
     117             : 
     118             :   template <class T>
     119           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
     120             :   {
     121           0 :     JS::Rooted<JSObject*> reflector(aCx);
     122           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
     123             :   }
     124             : 
     125             :   // We declare this as an array so that retrieving a pointer to this
     126             :   // binding's property hooks only requires compile/link-time resolvable
     127             :   // address arithmetic.  Declaring it as a pointer instead would require
     128             :   // doing a run-time load to fetch a pointer to this binding's property
     129             :   // hooks.  And then structures which embedded a pointer to this structure
     130             :   // would require a run-time load for proper initialization, which would
     131             :   // then induce static constructors.  Lots of static constructors.
     132             :   extern const NativePropertyHooks sNativePropertyHooks[];
     133             : 
     134             :   void
     135             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
     136             : 
     137             :   JS::Handle<JSObject*>
     138             :   GetProtoObjectHandle(JSContext* aCx);
     139             : 
     140             :   JS::Handle<JSObject*>
     141             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
     142             : 
     143             :   JSObject*
     144             :   GetConstructorObject(JSContext* aCx);
     145             : 
     146             : } // namespace CaretStateChangedEventBinding
     147             : 
     148             : 
     149             : 
     150             : } // namespace dom
     151             : } // namespace mozilla
     152             : 
     153             : #endif // mozilla_dom_CaretStateChangedEventBinding_h

Generated by: LCOV version 1.13