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:expandtab:shiftwidth=2:tabstop=2: |
michael@0 | 3 | */ |
michael@0 | 4 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef _ACCESSIBLE_EDITABLETEXT_H |
michael@0 | 9 | #define _ACCESSIBLE_EDITABLETEXT_H |
michael@0 | 10 | |
michael@0 | 11 | #include "nsISupports.h" |
michael@0 | 12 | #include "nsIAccessibleEditableText.h" |
michael@0 | 13 | |
michael@0 | 14 | #include "AccessibleEditableText.h" |
michael@0 | 15 | |
michael@0 | 16 | namespace mozilla { |
michael@0 | 17 | namespace a11y { |
michael@0 | 18 | |
michael@0 | 19 | class ia2AccessibleEditableText: public IAccessibleEditableText |
michael@0 | 20 | { |
michael@0 | 21 | public: |
michael@0 | 22 | |
michael@0 | 23 | // IAccessibleEditableText |
michael@0 | 24 | virtual HRESULT STDMETHODCALLTYPE copyText( |
michael@0 | 25 | /* [in] */ long startOffset, |
michael@0 | 26 | /* [in] */ long endOffset); |
michael@0 | 27 | |
michael@0 | 28 | virtual HRESULT STDMETHODCALLTYPE deleteText( |
michael@0 | 29 | /* [in] */ long startOffset, |
michael@0 | 30 | /* [in] */ long endOffset); |
michael@0 | 31 | |
michael@0 | 32 | virtual HRESULT STDMETHODCALLTYPE insertText( |
michael@0 | 33 | /* [in] */ long offset, |
michael@0 | 34 | /* [in] */ BSTR *text); |
michael@0 | 35 | |
michael@0 | 36 | virtual HRESULT STDMETHODCALLTYPE cutText( |
michael@0 | 37 | /* [in] */ long startOffset, |
michael@0 | 38 | /* [in] */ long endOffset); |
michael@0 | 39 | |
michael@0 | 40 | virtual HRESULT STDMETHODCALLTYPE pasteText( |
michael@0 | 41 | /* [in] */ long offset); |
michael@0 | 42 | |
michael@0 | 43 | virtual HRESULT STDMETHODCALLTYPE replaceText( |
michael@0 | 44 | /* [in] */ long startOffset, |
michael@0 | 45 | /* [in] */ long endOffset, |
michael@0 | 46 | /* [in] */ BSTR *text); |
michael@0 | 47 | |
michael@0 | 48 | virtual HRESULT STDMETHODCALLTYPE setAttributes( |
michael@0 | 49 | /* [in] */ long startOffset, |
michael@0 | 50 | /* [in] */ long endOffset, |
michael@0 | 51 | /* [in] */ BSTR *attributes); |
michael@0 | 52 | }; |
michael@0 | 53 | |
michael@0 | 54 | } // namespace a11y |
michael@0 | 55 | } // namespace mozilla |
michael@0 | 56 | |
michael@0 | 57 | #endif |