LCOV - code coverage report
Current view: top level - dom/html - HTMLMapElement.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 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_HTMLMapElement_h
       8             : #define mozilla_dom_HTMLMapElement_h
       9             : 
      10             : #include "mozilla/Attributes.h"
      11             : #include "nsGenericHTMLElement.h"
      12             : #include "nsIDOMHTMLMapElement.h"
      13             : #include "nsGkAtoms.h"
      14             : 
      15             : class nsContentList;
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : 
      20             : class HTMLMapElement final : public nsGenericHTMLElement,
      21             :                              public nsIDOMHTMLMapElement
      22             : {
      23             : public:
      24             :   explicit HTMLMapElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo);
      25             : 
      26             :   // nsISupports
      27             :   NS_DECL_ISUPPORTS_INHERITED
      28             : 
      29             :   // nsIDOMHTMLMapElement
      30             :   NS_DECL_NSIDOMHTMLMAPELEMENT
      31             : 
      32             :   virtual nsresult Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult,
      33             :                          bool aPreallocateChildren) const override;
      34             : 
      35           0 :   NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED_NO_UNLINK(HTMLMapElement,
      36             :                                                      nsGenericHTMLElement)
      37             : 
      38             :   // XPCOM GetName is fine.
      39           0 :   void SetName(const nsAString& aName, ErrorResult& aError)
      40             :   {
      41           0 :     SetHTMLAttr(nsGkAtoms::name, aName, aError);
      42           0 :   }
      43             :   nsIHTMLCollection* Areas();
      44             : 
      45             :   virtual JSObject* WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
      46             : 
      47             : protected:
      48           0 :   ~HTMLMapElement() {}
      49             : 
      50             :   RefPtr<nsContentList> mAreas;
      51             : };
      52             : 
      53             : } // namespace dom
      54             : } // namespace mozilla
      55             : 
      56             : #endif // mozilla_dom_HTMLMapElement_h

Generated by: LCOV version 1.13