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

          Line data    Source code
       1             : /* THIS FILE IS AUTOGENERATED FROM GamepadHapticActuator.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_GamepadHapticActuatorBinding_h
       4             : #define mozilla_dom_GamepadHapticActuatorBinding_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             : class GamepadHapticActuator;
      16             : struct GamepadHapticActuatorAtoms;
      17             : struct NativePropertyHooks;
      18             : class ProtoAndIfaceCache;
      19             : 
      20             : } // namespace dom
      21             : } // namespace mozilla
      22             : 
      23             : namespace mozilla {
      24             : namespace dom {
      25             : 
      26             : enum class GamepadHapticActuatorType : uint8_t {
      27             :   Vibration,
      28             :   EndGuard_
      29             : };
      30             : 
      31             : namespace GamepadHapticActuatorTypeValues {
      32             : extern const EnumEntry strings[2];
      33             : } // namespace GamepadHapticActuatorTypeValues
      34             : 
      35             : bool
      36             : ToJSValue(JSContext* aCx, GamepadHapticActuatorType aArgument, JS::MutableHandle<JS::Value> aValue);
      37             : 
      38             : 
      39             : namespace GamepadHapticActuatorBinding {
      40             : 
      41             :   typedef mozilla::dom::GamepadHapticActuator NativeType;
      42             : 
      43             :   bool
      44             :   ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
      45             : 
      46             :   JSObject*
      47             :   DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
      48             : 
      49             :   const JSClass*
      50             :   GetJSClass();
      51             : 
      52             :   bool
      53             :   Wrap(JSContext* aCx, mozilla::dom::GamepadHapticActuator* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
      54             : 
      55             :   template <class T>
      56           0 :   inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
      57             :   {
      58           0 :     JS::Rooted<JSObject*> reflector(aCx);
      59           0 :     return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
      60             :   }
      61             : 
      62             :   // We declare this as an array so that retrieving a pointer to this
      63             :   // binding's property hooks only requires compile/link-time resolvable
      64             :   // address arithmetic.  Declaring it as a pointer instead would require
      65             :   // doing a run-time load to fetch a pointer to this binding's property
      66             :   // hooks.  And then structures which embedded a pointer to this structure
      67             :   // would require a run-time load for proper initialization, which would
      68             :   // then induce static constructors.  Lots of static constructors.
      69             :   extern const NativePropertyHooks sNativePropertyHooks[];
      70             : 
      71             :   void
      72             :   CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
      73             : 
      74             :   JS::Handle<JSObject*>
      75             :   GetProtoObjectHandle(JSContext* aCx);
      76             : 
      77             :   JS::Handle<JSObject*>
      78             :   GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
      79             : 
      80             :   JSObject*
      81             :   GetConstructorObject(JSContext* aCx);
      82             : 
      83             : } // namespace GamepadHapticActuatorBinding
      84             : 
      85             : 
      86             : 
      87             : } // namespace dom
      88             : } // namespace mozilla
      89             : 
      90             : #endif // mozilla_dom_GamepadHapticActuatorBinding_h

Generated by: LCOV version 1.13