LCOV - code coverage report
Current view: top level - dom/events - ImageCaptureError.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 22 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 13 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             : #include "mozilla/dom/ImageCaptureError.h"
       8             : #include "mozilla/dom/ImageCaptureErrorEventBinding.h"
       9             : 
      10             : namespace mozilla {
      11             : namespace dom {
      12             : 
      13           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ImageCaptureError, mParent)
      14           0 : NS_IMPL_CYCLE_COLLECTING_ADDREF(ImageCaptureError)
      15           0 : NS_IMPL_CYCLE_COLLECTING_RELEASE(ImageCaptureError)
      16           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ImageCaptureError)
      17           0 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      18           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      19           0 : NS_INTERFACE_MAP_END
      20             : 
      21           0 : ImageCaptureError::ImageCaptureError(nsISupports* aParent,
      22             :                                      uint16_t aCode,
      23           0 :                                      const nsAString& aMessage)
      24             :   : mParent(aParent)
      25             :   , mMessage(aMessage)
      26           0 :   , mCode(aCode)
      27             : {
      28           0 : }
      29             : 
      30           0 : ImageCaptureError::~ImageCaptureError()
      31             : {
      32           0 : }
      33             : 
      34             : nsISupports*
      35           0 : ImageCaptureError::GetParentObject() const
      36             : {
      37           0 :   return mParent;
      38             : }
      39             : 
      40             : JSObject*
      41           0 : ImageCaptureError::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      42             : {
      43           0 :   return ImageCaptureErrorBinding::Wrap(aCx, this, aGivenProto);
      44             : }
      45             : 
      46             : uint16_t
      47           0 : ImageCaptureError::Code() const
      48             : {
      49           0 :   return mCode;
      50             : }
      51             : 
      52             : void
      53           0 : ImageCaptureError::GetMessage(nsAString& retval) const
      54             : {
      55           0 :   retval = mMessage;
      56           0 : }
      57             : 
      58             : } // namespace dom
      59             : } // namespace mozilla

Generated by: LCOV version 1.13