2013-11-20 01:01:15 +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_xpcAccessibleValue_h_
|
|
|
|
#define mozilla_a11y_xpcAccessibleValue_h_
|
|
|
|
|
|
|
|
#include "nsIAccessibleValue.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2021-02-20 02:14:32 +03:00
|
|
|
class LocalAccessible;
|
2014-10-22 04:49:28 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* XPCOM nsIAccessibleValue interface implementation, used by
|
|
|
|
* xpcAccessibleGeneric class.
|
|
|
|
*/
|
2013-11-20 01:01:15 +04:00
|
|
|
class xpcAccessibleValue : public nsIAccessibleValue {
|
|
|
|
public:
|
2018-02-06 09:46:57 +03:00
|
|
|
NS_IMETHOD GetMaximumValue(double* aValue) final;
|
|
|
|
NS_IMETHOD GetMinimumValue(double* aValue) final;
|
|
|
|
NS_IMETHOD GetCurrentValue(double* aValue) final;
|
|
|
|
NS_IMETHOD SetCurrentValue(double aValue) final;
|
|
|
|
NS_IMETHOD GetMinimumIncrement(double* aMinIncrement) final;
|
2013-11-20 01:01:15 +04:00
|
|
|
|
2014-10-22 04:49:28 +04:00
|
|
|
protected:
|
2013-11-20 01:01:15 +04:00
|
|
|
xpcAccessibleValue() {}
|
2014-10-22 04:49:28 +04:00
|
|
|
virtual ~xpcAccessibleValue() {}
|
|
|
|
|
|
|
|
private:
|
2021-03-09 07:09:03 +03:00
|
|
|
Accessible* Intl();
|
2013-11-20 01:01:15 +04:00
|
|
|
|
2015-01-07 02:35:02 +03:00
|
|
|
xpcAccessibleValue(const xpcAccessibleValue&) = delete;
|
|
|
|
xpcAccessibleValue& operator=(const xpcAccessibleValue&) = delete;
|
2013-11-20 01:01:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif
|