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

Generated by: LCOV version 1.13