tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ia2AccessibleEditableText.h (1615B)


      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_EDITABLETEXT_H
      9 #define _ACCESSIBLE_EDITABLETEXT_H
     10 
     11 #include "nsISupports.h"
     12 
     13 #include "AccessibleEditableText.h"
     14 
     15 namespace mozilla {
     16 namespace a11y {
     17 class HyperTextAccessibleBase;
     18 
     19 class ia2AccessibleEditableText : public IAccessibleEditableText {
     20 public:
     21  // IAccessibleEditableText
     22  virtual HRESULT STDMETHODCALLTYPE copyText(
     23      /* [in] */ long startOffset,
     24      /* [in] */ long endOffset);
     25 
     26  virtual HRESULT STDMETHODCALLTYPE deleteText(
     27      /* [in] */ long startOffset,
     28      /* [in] */ long endOffset);
     29 
     30  virtual HRESULT STDMETHODCALLTYPE insertText(
     31      /* [in] */ long offset,
     32      /* [in] */ BSTR* text);
     33 
     34  virtual HRESULT STDMETHODCALLTYPE cutText(
     35      /* [in] */ long startOffset,
     36      /* [in] */ long endOffset);
     37 
     38  MOZ_CAN_RUN_SCRIPT_BOUNDARY
     39  virtual HRESULT STDMETHODCALLTYPE pasteText(
     40      /* [in] */ long offset);
     41 
     42  virtual HRESULT STDMETHODCALLTYPE replaceText(
     43      /* [in] */ long startOffset,
     44      /* [in] */ long endOffset,
     45      /* [in] */ BSTR* text);
     46 
     47  virtual HRESULT STDMETHODCALLTYPE setAttributes(
     48      /* [in] */ long startOffset,
     49      /* [in] */ long endOffset,
     50      /* [in] */ BSTR* attributes);
     51 
     52 private:
     53  HyperTextAccessibleBase* TextAcc();
     54 };
     55 
     56 }  // namespace a11y
     57 }  // namespace mozilla
     58 
     59 #endif