LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom - CSSStyleSheetBinding.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 CSSStyleSheet.webidl BY Codegen.py - DO NOT EDIT */
       2             : 
       3             : #ifndef mozilla_dom_CSSStyleSheetBinding_h
       4             : #define mozilla_dom_CSSStyleSheetBinding_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             : 
      14             : class StyleSheet;
      15             : struct StyleSheetAtoms;
      16             : 
      17             : namespace dom {
      18             : 
      19             : struct NativePropertyHooks;
      20             : class ProtoAndIfaceCache;
      21             : 
      22             : } // namespace dom
      23             : 
      24             : } // namespace mozilla
      25             : 
      26             : namespace mozilla {
      27             : namespace dom {
      28             : 
      29             : enum class CSSStyleSheetParsingMode : uint8_t {
      30             :   Author,
      31             :   User,
      32             :   Agent,
      33             :   EndGuard_
      34             : };
      35             : 
      36             : namespace CSSStyleSheetParsingModeValues {
      37             : extern const EnumEntry strings[4];
      38             : } // namespace CSSStyleSheetParsingModeValues
      39             : 
      40             : bool
      41             : ToJSValue(JSContext* aCx, CSSStyleSheetParsingMode aArgument, JS::MutableHandle<JS::Value> aValue);
      42             : 
      43             : 
      44             : namespace CSSStyleSheetBinding {
      45             : 
      46             :   typedef mozilla::StyleSheet NativeType;
      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::StyleSheet* 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 CSSStyleSheetBinding
      86             : 
      87             : 
      88             : 
      89             : } // namespace dom
      90             : } // namespace mozilla
      91             : 
      92             : #endif // mozilla_dom_CSSStyleSheetBinding_h

Generated by: LCOV version 1.13