2014-09-23 05:23:02 -07: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-21 17:49:28 -07:00
|
|
|
#include "ApplicationAccessible.h"
|
|
|
|
#include "xpcAccessibleGeneric.h"
|
2014-09-23 05:23:02 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2014-10-21 17:49:28 -07:00
|
|
|
/**
|
|
|
|
* XPCOM wrapper around ApplicationAccessible class.
|
|
|
|
*/
|
|
|
|
class xpcAccessibleApplication : public xpcAccessibleGeneric,
|
|
|
|
public nsIAccessibleApplication
|
2014-09-23 05:23:02 -07:00
|
|
|
{
|
|
|
|
public:
|
2014-10-21 17:49:28 -07:00
|
|
|
xpcAccessibleApplication(Accessible* aIntl) : xpcAccessibleGeneric(aIntl) { }
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
|
|
|
// nsIAccessibleApplication
|
2014-09-23 05:23:02 -07:00
|
|
|
NS_IMETHOD GetAppName(nsAString& aName) MOZ_FINAL;
|
|
|
|
NS_IMETHOD GetAppVersion(nsAString& aVersion) MOZ_FINAL;
|
|
|
|
NS_IMETHOD GetPlatformName(nsAString& aName) MOZ_FINAL;
|
|
|
|
NS_IMETHOD GetPlatformVersion(nsAString& aVersion) MOZ_FINAL;
|
|
|
|
|
2014-10-21 17:49:28 -07:00
|
|
|
protected:
|
|
|
|
virtual ~xpcAccessibleApplication() {}
|
|
|
|
|
2014-09-23 05:23:02 -07:00
|
|
|
private:
|
2014-10-21 17:49:28 -07:00
|
|
|
ApplicationAccessible* Intl() { return mIntl->AsApplication(); }
|
2014-09-23 05:23:02 -07:00
|
|
|
|
|
|
|
xpcAccessibleApplication(const xpcAccessibleApplication&) MOZ_DELETE;
|
|
|
|
xpcAccessibleApplication& operator =(const xpcAccessibleApplication&) MOZ_DELETE;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|