2014-09-23 16:23:02 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_a11y_xpcAccessibleApplication_h_
|
|
|
|
#define mozilla_a11y_xpcAccessibleApplication_h_
|
|
|
|
|
|
|
|
#include "nsIAccessibleApplication.h"
|
2014-10-22 04:49:28 +04:00
|
|
|
#include "ApplicationAccessible.h"
|
|
|
|
#include "xpcAccessibleGeneric.h"
|
2014-09-23 16:23:02 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2014-10-22 04:49:28 +04:00
|
|
|
/**
|
|
|
|
* XPCOM wrapper around ApplicationAccessible class.
|
|
|
|
*/
|
|
|
|
class xpcAccessibleApplication : public xpcAccessibleGeneric,
|
|
|
|
public nsIAccessibleApplication
|
2014-09-23 16:23:02 +04:00
|
|
|
{
|
|
|
|
public:
|
2014-10-11 01:28:35 +04:00
|
|
|
explicit xpcAccessibleApplication(Accessible* aIntl) :
|
|
|
|
xpcAccessibleGeneric(aIntl) { }
|
2014-10-22 04:49:28 +04:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// nsIAccessibleApplication
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD GetAppName(nsAString& aName) final override;
|
|
|
|
NS_IMETHOD GetAppVersion(nsAString& aVersion) final override;
|
|
|
|
NS_IMETHOD GetPlatformName(nsAString& aName) final override;
|
|
|
|
NS_IMETHOD GetPlatformVersion(nsAString& aVersion) final override;
|
2014-09-23 16:23:02 +04:00
|
|
|
|
2014-10-22 04:49:28 +04:00
|
|
|
protected:
|
|
|
|
virtual ~xpcAccessibleApplication() {}
|
|
|
|
|
2014-09-23 16:23:02 +04:00
|
|
|
private:
|
2016-01-19 16:43:08 +03:00
|
|
|
ApplicationAccessible* Intl() { return mIntl.AsAccessible()->AsApplication(); }
|
2014-09-23 16:23:02 +04:00
|
|
|
|
2015-01-07 02:35:02 +03:00
|
|
|
xpcAccessibleApplication(const xpcAccessibleApplication&) = delete;
|
|
|
|
xpcAccessibleApplication& operator =(const xpcAccessibleApplication&) = delete;
|
2014-09-23 16:23:02 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|