LCOV - code coverage report
Current view: top level - accessible/xpcom - xpcAccessibleImage.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 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             : #ifndef mozilla_a11y_xpcAccessibleImage_h_
       8             : #define mozilla_a11y_xpcAccessibleImage_h_
       9             : 
      10             : #include "nsIAccessibleImage.h"
      11             : 
      12             : #include "xpcAccessibleGeneric.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace a11y {
      16             : 
      17             : class xpcAccessibleImage : public xpcAccessibleGeneric,
      18             :                            public nsIAccessibleImage
      19             : {
      20             : public:
      21           0 :   explicit xpcAccessibleImage(Accessible* aIntl) :
      22           0 :     xpcAccessibleGeneric(aIntl) { }
      23             : 
      24             :   xpcAccessibleImage(ProxyAccessible* aProxy, uint32_t aInterfaces) :
      25             :     xpcAccessibleGeneric(aProxy, aInterfaces) {}
      26             : 
      27             :   NS_DECL_ISUPPORTS_INHERITED
      28             : 
      29             :   NS_IMETHOD GetImagePosition(uint32_t aCoordType,
      30             :                               int32_t* aX, int32_t* aY) final override;
      31             :   NS_IMETHOD GetImageSize(int32_t* aWidth, int32_t* aHeight) final override;
      32             : 
      33             : protected:
      34           0 :   virtual ~xpcAccessibleImage() {}
      35             : 
      36             : private:
      37           0 :   ImageAccessible* Intl()
      38           0 :   { return mIntl.IsAccessible() ? mIntl.AsAccessible()->AsImage() : nullptr; }
      39             : 
      40             :   xpcAccessibleImage(const xpcAccessibleImage&) = delete;
      41             :   xpcAccessibleImage& operator =(const xpcAccessibleImage&) = delete;
      42             : };
      43             : 
      44             : } // namespace a11y
      45             : } // namespace mozilla
      46             : 
      47             : #endif

Generated by: LCOV version 1.13