LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - MediaKeysRequestStatusBinding.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 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 MediaKeysRequestStatus.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_MediaKeysRequestStatusBinding_h
       4             : #define mozilla_dom_MediaKeysRequestStatusBinding_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             : struct RequestMediaKeySystemAccessNotificationAtoms;
      18             : 
      19             : } // namespace dom
      20             : } // namespace mozilla
      21             : 
      22             : namespace mozilla {
      23             : namespace dom {
      24             : 
      25             : enum class MediaKeySystemStatus : uint8_t {
      26             :   Available,
      27             :   Api_disabled,
      28             :   Cdm_disabled,
      29             :   Cdm_not_supported,
      30             :   Cdm_not_installed,
      31             :   Cdm_created,
      32             :   EndGuard_
      33             : };
      34             : 
      35             : namespace MediaKeySystemStatusValues {
      36             : extern const EnumEntry strings[7];
      37             : } // namespace MediaKeySystemStatusValues
      38             : 
      39             : bool
      40             : ToJSValue(JSContext* aCx, MediaKeySystemStatus aArgument, JS::MutableHandle<JS::Value> aValue);
      41             : 
      42             : 
      43           0 : struct RequestMediaKeySystemAccessNotification : public DictionaryBase
      44             : {
      45             :   MOZ_INIT_OUTSIDE_CTOR nsString mKeySystem;
      46             :   MOZ_INIT_OUTSIDE_CTOR MediaKeySystemStatus mStatus;
      47             : 
      48             :   RequestMediaKeySystemAccessNotification();
      49             : 
      50             :   explicit inline RequestMediaKeySystemAccessNotification(const FastDictionaryInitializer& )
      51             :   {
      52             :     // Do nothing here; this is used by our "Fast" subclass
      53             :   }
      54             : 
      55             :   explicit inline RequestMediaKeySystemAccessNotification(const RequestMediaKeySystemAccessNotification& aOther)
      56             :   {
      57             :     *this = aOther;
      58             :   }
      59             : 
      60             :   bool
      61             :   Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
      62             : 
      63             :   bool
      64             :   Init(const nsAString& aJSON);
      65             : 
      66             :   bool
      67             :   ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
      68             : 
      69             :   bool
      70             :   ToJSON(nsAString& aJSON) const;
      71             : 
      72             :   void
      73             :   TraceDictionary(JSTracer* trc);
      74             : 
      75             :   RequestMediaKeySystemAccessNotification&
      76             :   operator=(const RequestMediaKeySystemAccessNotification& aOther);
      77             : 
      78             : private:
      79             :   static bool
      80             :   InitIds(JSContext* cx, RequestMediaKeySystemAccessNotificationAtoms* atomsCache);
      81             : };
      82             : 
      83             : namespace binding_detail {
      84             : struct FastRequestMediaKeySystemAccessNotification : public RequestMediaKeySystemAccessNotification
      85             : {
      86             :   inline FastRequestMediaKeySystemAccessNotification()
      87             :     : RequestMediaKeySystemAccessNotification(FastDictionaryInitializer())
      88             :   {
      89             :     // Doesn't matter what int we pass to the parent constructor
      90             :   }
      91             : };
      92             : } // namespace binding_detail
      93             : 
      94             : 
      95             : } // namespace dom
      96             : } // namespace mozilla
      97             : 
      98             : #endif // mozilla_dom_MediaKeysRequestStatusBinding_h

Generated by: LCOV version 1.13