LCOV - code coverage report
Current view: top level - dom/svg - SVGViewElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 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_SVGViewElement_h
       8             : #define mozilla_dom_SVGViewElement_h
       9             : 
      10             : #include "nsSVGElement.h"
      11             : #include "nsSVGEnum.h"
      12             : #include "nsSVGViewBox.h"
      13             : #include "SVGAnimatedPreserveAspectRatio.h"
      14             : #include "SVGStringList.h"
      15             : 
      16             : static const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
      17             : static const unsigned short SVG_ZOOMANDPAN_DISABLE = 1;
      18             : static const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2;
      19             : 
      20             : typedef nsSVGElement SVGViewElementBase;
      21             : 
      22             : class nsSVGOuterSVGFrame;
      23             : 
      24             : nsresult NS_NewSVGViewElement(nsIContent **aResult,
      25             :                               already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
      26             : 
      27             : namespace mozilla {
      28             : class SVGFragmentIdentifier;
      29             : 
      30             : namespace dom {
      31             : class SVGViewportElement;
      32             : 
      33           0 : class SVGViewElement : public SVGViewElementBase
      34             : {
      35             : protected:
      36             :   friend class mozilla::SVGFragmentIdentifier;
      37             :   friend class SVGSVGElement;
      38             :   friend class SVGViewportElement;
      39             :   friend class ::nsSVGOuterSVGFrame;
      40             :   explicit SVGViewElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
      41             :   friend nsresult (::NS_NewSVGViewElement(nsIContent **aResult,
      42             :                                           already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));
      43             :   virtual JSObject* WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto) override;
      44             : 
      45             : public:
      46             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      47             :                          bool aPreallocateChildren) const override;
      48             : 
      49             :   // WebIDL
      50           0 :   uint16_t ZoomAndPan() { return mEnumAttributes[ZOOMANDPAN].GetAnimValue(); }
      51             :   void SetZoomAndPan(uint16_t aZoomAndPan, ErrorResult& rv);
      52             :   already_AddRefed<SVGAnimatedRect> ViewBox();
      53             :   already_AddRefed<DOMSVGAnimatedPreserveAspectRatio> PreserveAspectRatio();
      54             :   already_AddRefed<DOMSVGStringList> ViewTarget();
      55             : 
      56             : private:
      57             : 
      58             :   // nsSVGElement overrides
      59             : 
      60             :   virtual EnumAttributesInfo GetEnumInfo() override;
      61             : 
      62             :   enum { ZOOMANDPAN };
      63             :   nsSVGEnum mEnumAttributes[1];
      64             :   static nsSVGEnumMapping sZoomAndPanMap[];
      65             :   static EnumInfo sEnumInfo[1];
      66             : 
      67             :   virtual nsSVGViewBox *GetViewBox() override;
      68             :   virtual SVGAnimatedPreserveAspectRatio *GetPreserveAspectRatio() override;
      69             : 
      70             :   nsSVGViewBox                   mViewBox;
      71             :   SVGAnimatedPreserveAspectRatio mPreserveAspectRatio;
      72             : 
      73             :   virtual StringListAttributesInfo GetStringListInfo() override;
      74             : 
      75             :   enum { VIEW_TARGET };
      76             :   SVGStringList mStringListAttributes[1];
      77             :   static StringListInfo sStringListInfo[1];
      78             : };
      79             : 
      80             : } // namespace dom
      81             : } // namespace mozilla
      82             : 
      83             : #endif // mozilla_dom_SVGViewElement_h

Generated by: LCOV version 1.13