ia2AccessibleValue.h (1229B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim:expandtab:shiftwidth=2:tabstop=2: 3 */ 4 /* This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 #ifndef _ACCESSIBLE_VALUE_H 9 #define _ACCESSIBLE_VALUE_H 10 11 #include "mozilla/a11y/Accessible.h" 12 #include "AccessibleValue.h" 13 14 namespace mozilla { 15 namespace a11y { 16 class AccessibleWrap; 17 18 class ia2AccessibleValue : public IAccessibleValue { 19 public: 20 // IUnknown 21 STDMETHODIMP QueryInterface(REFIID, void**); 22 23 // IAccessibleValue 24 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_currentValue( 25 /* [retval][out] */ VARIANT* currentValue); 26 27 virtual HRESULT STDMETHODCALLTYPE setCurrentValue( 28 /* [in] */ VARIANT value); 29 30 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_maximumValue( 31 /* [retval][out] */ VARIANT* maximumValue); 32 33 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_minimumValue( 34 /* [retval][out] */ VARIANT* minimumValue); 35 36 private: 37 Accessible* Acc(); 38 AccessibleWrap* LocalAcc(); 39 }; 40 41 } // namespace a11y 42 } // namespace mozilla 43 44 #endif