Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 5 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef mozilla_a11y_uiaRawElmProvider_h__ |
michael@0 | 8 | #define mozilla_a11y_uiaRawElmProvider_h__ |
michael@0 | 9 | |
michael@0 | 10 | #include "objbase.h" |
michael@0 | 11 | #include "AccessibleWrap.h" |
michael@0 | 12 | #include "IUnknownImpl.h" |
michael@0 | 13 | #include "uiautomation.h" |
michael@0 | 14 | |
michael@0 | 15 | namespace mozilla { |
michael@0 | 16 | namespace a11y { |
michael@0 | 17 | |
michael@0 | 18 | class AccessibleWrap; |
michael@0 | 19 | |
michael@0 | 20 | /** |
michael@0 | 21 | * IRawElementProviderSimple implementation (maintains IAccessibleEx approach). |
michael@0 | 22 | */ |
michael@0 | 23 | class uiaRawElmProvider MOZ_FINAL : public IAccessibleEx, |
michael@0 | 24 | public IRawElementProviderSimple |
michael@0 | 25 | { |
michael@0 | 26 | public: |
michael@0 | 27 | uiaRawElmProvider(AccessibleWrap* aAcc) : mAcc(aAcc) { } |
michael@0 | 28 | |
michael@0 | 29 | // IUnknown |
michael@0 | 30 | DECL_IUNKNOWN |
michael@0 | 31 | |
michael@0 | 32 | // IAccessibleEx |
michael@0 | 33 | virtual HRESULT STDMETHODCALLTYPE GetObjectForChild( |
michael@0 | 34 | /* [in] */ long aIdChild, |
michael@0 | 35 | /* [retval][out] */ __RPC__deref_out_opt IAccessibleEx** aAccEx); |
michael@0 | 36 | |
michael@0 | 37 | virtual HRESULT STDMETHODCALLTYPE GetIAccessiblePair( |
michael@0 | 38 | /* [out] */ __RPC__deref_out_opt IAccessible** aAcc, |
michael@0 | 39 | /* [out] */ __RPC__out long* aIdChild); |
michael@0 | 40 | |
michael@0 | 41 | virtual HRESULT STDMETHODCALLTYPE GetRuntimeId( |
michael@0 | 42 | /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY** aRuntimeIds); |
michael@0 | 43 | |
michael@0 | 44 | virtual HRESULT STDMETHODCALLTYPE ConvertReturnedElement( |
michael@0 | 45 | /* [in] */ __RPC__in_opt IRawElementProviderSimple* aRawElmProvider, |
michael@0 | 46 | /* [out] */ __RPC__deref_out_opt IAccessibleEx** aAccEx); |
michael@0 | 47 | |
michael@0 | 48 | // IRawElementProviderSimple |
michael@0 | 49 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProviderOptions( |
michael@0 | 50 | /* [retval][out] */ __RPC__out enum ProviderOptions* aProviderOptions); |
michael@0 | 51 | |
michael@0 | 52 | virtual HRESULT STDMETHODCALLTYPE GetPatternProvider( |
michael@0 | 53 | /* [in] */ PATTERNID aPatternId, |
michael@0 | 54 | /* [retval][out] */ __RPC__deref_out_opt IUnknown** aPatternProvider); |
michael@0 | 55 | |
michael@0 | 56 | virtual HRESULT STDMETHODCALLTYPE GetPropertyValue( |
michael@0 | 57 | /* [in] */ PROPERTYID aPropertyId, |
michael@0 | 58 | /* [retval][out] */ __RPC__out VARIANT* aPropertyValue); |
michael@0 | 59 | |
michael@0 | 60 | virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_HostRawElementProvider( |
michael@0 | 61 | /* [retval][out] */ __RPC__deref_out_opt IRawElementProviderSimple** aRawElmProvider); |
michael@0 | 62 | |
michael@0 | 63 | private: |
michael@0 | 64 | uiaRawElmProvider() MOZ_DELETE; |
michael@0 | 65 | uiaRawElmProvider& operator =(const uiaRawElmProvider&) MOZ_DELETE; |
michael@0 | 66 | uiaRawElmProvider(const uiaRawElmProvider&) MOZ_DELETE; |
michael@0 | 67 | |
michael@0 | 68 | protected: |
michael@0 | 69 | nsRefPtr<AccessibleWrap> mAcc; |
michael@0 | 70 | }; |
michael@0 | 71 | |
michael@0 | 72 | } // a11y namespace |
michael@0 | 73 | } // mozilla namespace |
michael@0 | 74 | |
michael@0 | 75 | #endif |