LCOV - code coverage report
Current view: top level - dom/svg - SVGFEConvolveMatrixElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef mozilla_dom_SVGFEConvolveMatrixElement_h
       8             : #define mozilla_dom_SVGFEConvolveMatrixElement_h
       9             : 
      10             : #include "nsSVGBoolean.h"
      11             : #include "nsSVGEnum.h"
      12             : #include "nsSVGFilters.h"
      13             : #include "nsSVGInteger.h"
      14             : #include "nsSVGIntegerPair.h"
      15             : #include "nsSVGNumber2.h"
      16             : #include "nsSVGString.h"
      17             : #include "SVGAnimatedNumberList.h"
      18             : 
      19             : nsresult NS_NewSVGFEConvolveMatrixElement(nsIContent **aResult,
      20             :                                           already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      21             : 
      22             : namespace mozilla {
      23             : class DOMSVGAnimatedNumberList;
      24             : 
      25             : namespace dom {
      26             : class SVGAnimatedBoolean;
      27             : 
      28             : typedef nsSVGFE SVGFEConvolveMatrixElementBase;
      29             : 
      30           0 : class SVGFEConvolveMatrixElement : public SVGFEConvolveMatrixElementBase
      31             : {
      32             :   friend nsresult (::NS_NewSVGFEConvolveMatrixElement(nsIContent **aResult,
      33             :                                                       already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      34             : protected:
      35           0 :   explicit SVGFEConvolveMatrixElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo)
      36           0 :     : SVGFEConvolveMatrixElementBase(aNodeInfo)
      37             :   {
      38           0 :   }
      39             :   virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      40             : 
      41             : public:
      42             :   virtual FilterPrimitiveDescription
      43             :     GetPrimitiveDescription(nsSVGFilterInstance* aInstance,
      44             :                             const IntRect& aFilterSubregion,
      45             :                             const nsTArray<bool>& aInputsAreTainted,
      46             :                             nsTArray<RefPtr<SourceSurface>>& aInputImages) override;
      47             :   virtual bool AttributeAffectsRendering(
      48             :           int32_t aNameSpaceID, nsIAtom* aAttribute) const override;
      49           0 :   virtual nsSVGString& GetResultImageName() override { return mStringAttributes[RESULT]; }
      50             :   virtual void GetSourceImageNames(nsTArray<nsSVGStringInfo>& aSources) override;
      51             : 
      52             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      53             :                          bool aPreallocateChildren) const override;
      54             : 
      55             :   // WebIDL
      56             :   already_AddRefed<SVGAnimatedString> In1();
      57             :   already_AddRefed<SVGAnimatedInteger> OrderX();
      58             :   already_AddRefed<SVGAnimatedInteger> OrderY();
      59             :   already_AddRefed<DOMSVGAnimatedNumberList> KernelMatrix();
      60             :   already_AddRefed<SVGAnimatedInteger> TargetX();
      61             :   already_AddRefed<SVGAnimatedInteger> TargetY();
      62             :   already_AddRefed<SVGAnimatedEnumeration> EdgeMode();
      63             :   already_AddRefed<SVGAnimatedBoolean> PreserveAlpha();
      64             :   already_AddRefed<SVGAnimatedNumber> Divisor();
      65             :   already_AddRefed<SVGAnimatedNumber> Bias();
      66             :   already_AddRefed<SVGAnimatedNumber> KernelUnitLengthX();
      67             :   already_AddRefed<SVGAnimatedNumber> KernelUnitLengthY();
      68             : 
      69             : protected:
      70             :   virtual NumberAttributesInfo GetNumberInfo() override;
      71             :   virtual NumberPairAttributesInfo GetNumberPairInfo() override;
      72             :   virtual IntegerAttributesInfo GetIntegerInfo() override;
      73             :   virtual IntegerPairAttributesInfo GetIntegerPairInfo() override;
      74             :   virtual BooleanAttributesInfo GetBooleanInfo() override;
      75             :   virtual EnumAttributesInfo GetEnumInfo() override;
      76             :   virtual StringAttributesInfo GetStringInfo() override;
      77             :   virtual NumberListAttributesInfo GetNumberListInfo() override;
      78             : 
      79             :   enum { DIVISOR, BIAS };
      80             :   nsSVGNumber2 mNumberAttributes[2];
      81             :   static NumberInfo sNumberInfo[2];
      82             : 
      83             :   enum { KERNEL_UNIT_LENGTH };
      84             :   nsSVGNumberPair mNumberPairAttributes[1];
      85             :   static NumberPairInfo sNumberPairInfo[1];
      86             : 
      87             :   enum { TARGET_X, TARGET_Y };
      88             :   nsSVGInteger mIntegerAttributes[2];
      89             :   static IntegerInfo sIntegerInfo[2];
      90             : 
      91             :   enum { ORDER };
      92             :   nsSVGIntegerPair mIntegerPairAttributes[1];
      93             :   static IntegerPairInfo sIntegerPairInfo[1];
      94             : 
      95             :   enum { PRESERVEALPHA };
      96             :   nsSVGBoolean mBooleanAttributes[1];
      97             :   static BooleanInfo sBooleanInfo[1];
      98             : 
      99             :   enum { EDGEMODE };
     100             :   nsSVGEnum mEnumAttributes[1];
     101             :   static nsSVGEnumMapping sEdgeModeMap[];
     102             :   static EnumInfo sEnumInfo[1];
     103             : 
     104             :   enum { RESULT, IN1 };
     105             :   nsSVGString mStringAttributes[2];
     106             :   static StringInfo sStringInfo[2];
     107             : 
     108             :   enum { KERNELMATRIX };
     109             :   SVGAnimatedNumberList mNumberListAttributes[1];
     110             :   static NumberListInfo sNumberListInfo[1];
     111             : };
     112             : 
     113             : } // namespace dom
     114             : } // namespace mozilla
     115             : 
     116             : #endif // mozilla_dom_SVGFEConvolveMatrixElement_h

Generated by: LCOV version 1.13