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 IA2_ACCESSIBLE_COMPONENT_H_ 9 #define IA2_ACCESSIBLE_COMPONENT_H_ 10 11 #include "AccessibleComponent.h" 12 13 namespace mozilla { 14 namespace a11y { 15 class AccessibleWrap; 16 17 class ia2AccessibleComponent : public IAccessibleComponent { 18 public: 19 // IUnknown 20 STDMETHODIMP QueryInterface(REFIID, void**); 21 22 // IAccessibleComponent 23 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_locationInParent( 24 /* [out] */ long* x, 25 /* [retval][out] */ long* y); 26 27 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_foreground( 28 /* [retval][out] */ IA2Color* foreground); 29 30 virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_background( 31 /* [retval][out] */ IA2Color* background); 32 33 private: 34 AccessibleWrap* LocalAcc(); 35 }; 36 37 } // namespace a11y 38 } // namespace mozilla 39 40 #endif 41