LCOV - code coverage report
Current view: top level - accessible/xpcom - xpcAccessibleApplication.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 25 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: 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 "xpcAccessibleApplication.h"
       8             : 
       9             : #include "ApplicationAccessible.h"
      10             : 
      11             : using namespace mozilla::a11y;
      12             : 
      13             : ////////////////////////////////////////////////////////////////////////////////
      14             : // nsISupports
      15             : 
      16           0 : NS_IMPL_ISUPPORTS_INHERITED(xpcAccessibleApplication,
      17             :                             xpcAccessibleGeneric,
      18             :                             nsIAccessibleApplication)
      19             : 
      20             : ////////////////////////////////////////////////////////////////////////////////
      21             : // nsIAccessibleApplication
      22             : 
      23             : NS_IMETHODIMP
      24           0 : xpcAccessibleApplication::GetAppName(nsAString& aName)
      25             : {
      26           0 :   aName.Truncate();
      27             : 
      28           0 :   if (!Intl())
      29           0 :     return NS_ERROR_FAILURE;
      30             : 
      31           0 :   Intl()->AppName(aName);
      32           0 :   return NS_OK;
      33             : }
      34             : 
      35             : NS_IMETHODIMP
      36           0 : xpcAccessibleApplication::GetAppVersion(nsAString& aVersion)
      37             : {
      38           0 :   aVersion.Truncate();
      39             : 
      40           0 :   if (!Intl())
      41           0 :     return NS_ERROR_FAILURE;
      42             : 
      43           0 :   Intl()->AppVersion(aVersion);
      44           0 :   return NS_OK;
      45             : }
      46             : 
      47             : NS_IMETHODIMP
      48           0 : xpcAccessibleApplication::GetPlatformName(nsAString& aName)
      49             : {
      50           0 :   aName.Truncate();
      51             : 
      52           0 :   if (!Intl())
      53           0 :     return NS_ERROR_FAILURE;
      54             : 
      55           0 :   Intl()->PlatformName(aName);
      56           0 :   return NS_OK;
      57             : }
      58             : 
      59             : NS_IMETHODIMP
      60           0 : xpcAccessibleApplication::GetPlatformVersion(nsAString& aVersion)
      61             : {
      62           0 :   aVersion.Truncate();
      63             : 
      64           0 :   if (!Intl())
      65           0 :     return NS_ERROR_FAILURE;
      66             : 
      67           0 :   Intl()->PlatformVersion(aVersion);
      68           0 :   return NS_OK;
      69             : }

Generated by: LCOV version 1.13