accessible/src/windows/ia2/ia2AccessibleEditableText.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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/. */
     8 #ifndef _ACCESSIBLE_EDITABLETEXT_H
     9 #define _ACCESSIBLE_EDITABLETEXT_H
    11 #include "nsISupports.h"
    12 #include "nsIAccessibleEditableText.h"
    14 #include "AccessibleEditableText.h"
    16 namespace mozilla {
    17 namespace a11y {
    19 class ia2AccessibleEditableText: public IAccessibleEditableText
    20 {
    21 public:
    23   // IAccessibleEditableText
    24   virtual HRESULT STDMETHODCALLTYPE copyText(
    25       /* [in] */ long startOffset,
    26       /* [in] */ long endOffset);
    28   virtual HRESULT STDMETHODCALLTYPE deleteText(
    29       /* [in] */ long startOffset,
    30       /* [in] */ long endOffset);
    32   virtual HRESULT STDMETHODCALLTYPE insertText(
    33       /* [in] */ long offset,
    34       /* [in] */ BSTR *text);
    36   virtual HRESULT STDMETHODCALLTYPE cutText(
    37       /* [in] */ long startOffset,
    38       /* [in] */ long endOffset);
    40   virtual HRESULT STDMETHODCALLTYPE pasteText(
    41       /* [in] */ long offset);
    43   virtual HRESULT STDMETHODCALLTYPE replaceText(
    44       /* [in] */ long startOffset,
    45       /* [in] */ long endOffset,
    46       /* [in] */ BSTR *text);
    48   virtual HRESULT STDMETHODCALLTYPE setAttributes(
    49       /* [in] */ long startOffset,
    50       /* [in] */ long endOffset,
    51       /* [in] */ BSTR *attributes);
    52 };
    54 } // namespace a11y
    55 } // namespace mozilla
    57 #endif

mercurial