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

Generated by: LCOV version 1.13