LCOV - code coverage report
Current view: top level - layout/style - CSSMediaRule.h (source / functions) Hit Total Coverage
Test: output.info Lines: 2 5 40.0 %
Date: 2017-07-14 16:53:18 Functions: 2 7 28.6 %
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_CSSMediaRule_h
       8             : #define mozilla_dom_CSSMediaRule_h
       9             : 
      10             : #include "mozilla/css/GroupRule.h"
      11             : #include "nsIDOMCSSMediaRule.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace dom {
      15             : 
      16           0 : class CSSMediaRule : public css::ConditionRule
      17             :                    , public nsIDOMCSSMediaRule
      18             : {
      19             : protected:
      20          48 :   using ConditionRule::ConditionRule;
      21           0 :   virtual ~CSSMediaRule() {}
      22             : 
      23             : public:
      24             :   NS_DECL_ISUPPORTS_INHERITED
      25             : 
      26         197 :   int32_t GetType() const override { return css::Rule::MEDIA_RULE; }
      27             : 
      28             :   // XPCOM interface
      29             :   using Rule::GetType;
      30             : 
      31             :   // nsIDOMCSSGroupingRule interface
      32             :   NS_DECL_NSIDOMCSSGROUPINGRULE
      33             : 
      34             :   // nsIDOMCSSConditionRule interface
      35             :   NS_IMETHOD SetConditionText(const nsAString& aConditionText) override = 0;
      36             : 
      37             :   // nsIDOMCSSMediaRule interface
      38             :   NS_DECL_NSIDOMCSSMEDIARULE
      39             : 
      40             :   // WebIDL interface
      41           0 :   uint16_t Type() const override { return nsIDOMCSSRule::MEDIA_RULE; }
      42             :   // Our XPCOM GetConditionText is OK
      43             :   void SetConditionText(const nsAString& aConditionText,
      44             :                         ErrorResult& aRv) final;
      45             :   virtual MediaList* Media() = 0;
      46             : 
      47             :   JSObject* WrapObject(JSContext* aCx,
      48             :                        JS::Handle<JSObject*> aGivenProto) override;
      49             : };
      50             : 
      51             : } // namespace dom
      52             : } // namespace mozilla
      53             : 
      54             : #endif // mozilla_dom_CSSMediaRule_h

Generated by: LCOV version 1.13