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

Generated by: LCOV version 1.13