accessible/src/xpcom/xpcAccessibleTable.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.

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_XPCOM_XPACCESSIBLETABLE_H_
michael@0 8 #define MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_
michael@0 9
michael@0 10 #include "nsAString.h"
michael@0 11 #include "nscore.h"
michael@0 12
michael@0 13 class nsIAccessible;
michael@0 14 class nsIArray;
michael@0 15
michael@0 16 namespace mozilla {
michael@0 17 namespace a11y {
michael@0 18
michael@0 19 class TableAccessible;
michael@0 20
michael@0 21 class xpcAccessibleTable
michael@0 22 {
michael@0 23 public:
michael@0 24 xpcAccessibleTable(mozilla::a11y::TableAccessible* aTable) : mTable(aTable) { }
michael@0 25
michael@0 26 nsresult GetCaption(nsIAccessible** aCaption);
michael@0 27 nsresult GetSummary(nsAString& aSummary);
michael@0 28 nsresult GetColumnCount(int32_t* aColumnCount);
michael@0 29 nsresult GetRowCount(int32_t* aRowCount);
michael@0 30 nsresult GetCellAt(int32_t aRowIndex, int32_t aColumnIndex,
michael@0 31 nsIAccessible** aCell);
michael@0 32 nsresult GetCellIndexAt(int32_t aRowIndex, int32_t aColumnIndex,
michael@0 33 int32_t* aCellIndex);
michael@0 34 nsresult GetColumnIndexAt(int32_t aCellIndex, int32_t* aColumnIndex);
michael@0 35 nsresult GetRowIndexAt(int32_t aCellIndex, int32_t* aRowIndex);
michael@0 36 nsresult GetRowAndColumnIndicesAt(int32_t aCellIndex, int32_t* aRowIndex,
michael@0 37 int32_t* aColumnIndex);
michael@0 38 nsresult GetColumnExtentAt(int32_t row, int32_t column,
michael@0 39 int32_t* aColumnExtent);
michael@0 40 nsresult GetRowExtentAt(int32_t row, int32_t column,
michael@0 41 int32_t* aRowExtent);
michael@0 42 nsresult GetColumnDescription(int32_t aColIdx, nsAString& aDescription);
michael@0 43 nsresult GetRowDescription(int32_t aRowIdx, nsAString& aDescription);
michael@0 44 nsresult IsColumnSelected(int32_t aColIdx, bool* _retval);
michael@0 45 nsresult IsRowSelected(int32_t aRowIdx, bool* _retval);
michael@0 46 nsresult IsCellSelected(int32_t aRowIdx, int32_t aColIdx, bool* _retval);
michael@0 47 nsresult GetSelectedCellCount(uint32_t* aSelectedCellCount);
michael@0 48 nsresult GetSelectedColumnCount(uint32_t* aSelectedColumnCount);
michael@0 49 nsresult GetSelectedRowCount(uint32_t* aSelectedRowCount);
michael@0 50 nsresult GetSelectedCells(nsIArray** aSelectedCell);
michael@0 51 nsresult GetSelectedCellIndices(uint32_t* aCellsArraySize,
michael@0 52 int32_t** aCellsArray);
michael@0 53 nsresult GetSelectedColumnIndices(uint32_t* aColsArraySize,
michael@0 54 int32_t** aColsArray);
michael@0 55 nsresult GetSelectedRowIndices(uint32_t* aRowsArraySize,
michael@0 56 int32_t** aRowsArray);
michael@0 57 nsresult SelectColumn(int32_t aColIdx);
michael@0 58 nsresult SelectRow(int32_t aRowIdx);
michael@0 59 nsresult UnselectColumn(int32_t aColIdx);
michael@0 60 nsresult UnselectRow(int32_t aRowIdx);
michael@0 61 nsresult IsProbablyForLayout(bool* aIsForLayout);
michael@0 62
michael@0 63 protected:
michael@0 64 mozilla::a11y::TableAccessible* mTable;
michael@0 65 };
michael@0 66
michael@0 67 } // namespace a11y
michael@0 68 } // namespace mozilla
michael@0 69
michael@0 70 #endif // MOZILLA_A11Y_XPCOM_XPACCESSIBLETABLE_H_

mercurial