LCOV - code coverage report
Current view: top level - accessible/xpcom - xpcAccessibleImage.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 22 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=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 file,
       5             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "xpcAccessibleImage.h"
       8             : 
       9             : #include "ImageAccessible.h"
      10             : 
      11             : using namespace mozilla::a11y;
      12             : 
      13             : ////////////////////////////////////////////////////////////////////////////////
      14             : // nsISupports
      15             : 
      16           0 : NS_IMPL_ISUPPORTS_INHERITED(xpcAccessibleImage,
      17             :                             xpcAccessibleGeneric,
      18             :                             nsIAccessibleImage)
      19             : 
      20             : ////////////////////////////////////////////////////////////////////////////////
      21             : // nsIAccessibleImage
      22             : 
      23             : NS_IMETHODIMP
      24           0 : xpcAccessibleImage::GetImagePosition(uint32_t aCoordType,
      25             :                                      int32_t* aX, int32_t* aY)
      26             : {
      27           0 :   NS_ENSURE_ARG_POINTER(aX);
      28           0 :   *aX = 0;
      29           0 :   NS_ENSURE_ARG_POINTER(aY);
      30           0 :   *aY = 0;
      31             : 
      32           0 :   if (!Intl())
      33           0 :     return NS_ERROR_FAILURE;
      34             : 
      35           0 :   nsIntPoint point = Intl()->Position(aCoordType);
      36           0 :   *aX = point.x; *aY = point.y;
      37           0 :   return NS_OK;
      38             : }
      39             : 
      40             : NS_IMETHODIMP
      41           0 : xpcAccessibleImage::GetImageSize(int32_t* aWidth, int32_t* aHeight)
      42             : {
      43           0 :   NS_ENSURE_ARG_POINTER(aWidth);
      44           0 :   *aWidth = 0;
      45           0 :   NS_ENSURE_ARG_POINTER(aHeight);
      46           0 :   *aHeight = 0;
      47             : 
      48           0 :   if (!Intl())
      49           0 :     return NS_ERROR_FAILURE;
      50             : 
      51           0 :   nsIntSize size = Intl()->Size();
      52           0 :   *aWidth = size.width;
      53           0 :   *aHeight = size.height;
      54           0 :   return NS_OK;
      55             : }

Generated by: LCOV version 1.13