Tue, 06 Jan 2015 21:39:09 +0100
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 | /************************************************************************* |
michael@0 | 2 | * |
michael@0 | 3 | * File Name (AccessibleTableCell.idl) |
michael@0 | 4 | * |
michael@0 | 5 | * IAccessible2 IDL Specification |
michael@0 | 6 | * |
michael@0 | 7 | * Copyright (c) 2007, 2013 Linux Foundation |
michael@0 | 8 | * Copyright (c) 2006 IBM Corporation |
michael@0 | 9 | * Copyright (c) 2000, 2006 Sun Microsystems, Inc. |
michael@0 | 10 | * All rights reserved. |
michael@0 | 11 | * |
michael@0 | 12 | * |
michael@0 | 13 | * Redistribution and use in source and binary forms, with or without |
michael@0 | 14 | * modification, are permitted provided that the following conditions |
michael@0 | 15 | * are met: |
michael@0 | 16 | * |
michael@0 | 17 | * 1. Redistributions of source code must retain the above copyright |
michael@0 | 18 | * notice, this list of conditions and the following disclaimer. |
michael@0 | 19 | * |
michael@0 | 20 | * 2. Redistributions in binary form must reproduce the above |
michael@0 | 21 | * copyright notice, this list of conditions and the following |
michael@0 | 22 | * disclaimer in the documentation and/or other materials |
michael@0 | 23 | * provided with the distribution. |
michael@0 | 24 | * |
michael@0 | 25 | * 3. Neither the name of the Linux Foundation nor the names of its |
michael@0 | 26 | * contributors may be used to endorse or promote products |
michael@0 | 27 | * derived from this software without specific prior written |
michael@0 | 28 | * permission. |
michael@0 | 29 | * |
michael@0 | 30 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
michael@0 | 31 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
michael@0 | 32 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@0 | 33 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
michael@0 | 34 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
michael@0 | 35 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@0 | 36 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
michael@0 | 37 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
michael@0 | 38 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
michael@0 | 39 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
michael@0 | 40 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
michael@0 | 41 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
michael@0 | 42 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
michael@0 | 43 | * |
michael@0 | 44 | * This BSD License conforms to the Open Source Initiative "Simplified |
michael@0 | 45 | * BSD License" as published at: |
michael@0 | 46 | * http://www.opensource.org/licenses/bsd-license.php |
michael@0 | 47 | * |
michael@0 | 48 | * IAccessible2 is a trademark of the Linux Foundation. The IAccessible2 |
michael@0 | 49 | * mark may be used in accordance with the Linux Foundation Trademark |
michael@0 | 50 | * Policy to indicate compliance with the IAccessible2 specification. |
michael@0 | 51 | * |
michael@0 | 52 | ************************************************************************/ |
michael@0 | 53 | |
michael@0 | 54 | import "objidl.idl"; |
michael@0 | 55 | import "oaidl.idl"; |
michael@0 | 56 | import "oleacc.idl"; |
michael@0 | 57 | import "Accessible2.idl"; |
michael@0 | 58 | |
michael@0 | 59 | /** @brief This interface gives access to the cells of a two-dimensional table. |
michael@0 | 60 | |
michael@0 | 61 | Please also refer to the IAccessibleTable2 interface. |
michael@0 | 62 | |
michael@0 | 63 | */ |
michael@0 | 64 | [object, uuid(594116B1-C99F-4847-AD06-0A7A86ECE645)] |
michael@0 | 65 | interface IAccessibleTableCell : IUnknown |
michael@0 | 66 | { |
michael@0 | 67 | |
michael@0 | 68 | /** @brief Returns the number of columns occupied by this cell accessible. |
michael@0 | 69 | |
michael@0 | 70 | The result is greater than 1 if the specified cell spans multiple columns. |
michael@0 | 71 | @param [out] nColumnsSpanned |
michael@0 | 72 | Returns the 1 based column extent of the specified cell. |
michael@0 | 73 | @retval S_OK |
michael@0 | 74 | */ |
michael@0 | 75 | [propget] HRESULT columnExtent |
michael@0 | 76 | ( |
michael@0 | 77 | [out, retval] long *nColumnsSpanned |
michael@0 | 78 | ); |
michael@0 | 79 | |
michael@0 | 80 | /** @brief Returns the column headers as an array of cell accessibles. |
michael@0 | 81 | |
michael@0 | 82 | @param [out] cellAccessibles |
michael@0 | 83 | Pointer to an array of references to cell accessibles. The array is allocated |
michael@0 | 84 | by the server. The client must free it with CoTaskMemFree. |
michael@0 | 85 | @param [out] nColumnHeaderCells |
michael@0 | 86 | The number of accessibles returned; the size of the returned array. |
michael@0 | 87 | @retval S_OK |
michael@0 | 88 | @retval S_FALSE if there is no header, [out] values are NULL and 0 respectively |
michael@0 | 89 | */ |
michael@0 | 90 | [propget] HRESULT columnHeaderCells |
michael@0 | 91 | ( |
michael@0 | 92 | [out, size_is(,*nColumnHeaderCells)] IUnknown ***cellAccessibles, |
michael@0 | 93 | [out, retval] long *nColumnHeaderCells |
michael@0 | 94 | ); |
michael@0 | 95 | |
michael@0 | 96 | /** @brief Translates this cell accessible into the corresponding column index. |
michael@0 | 97 | |
michael@0 | 98 | @param [out] columnIndex |
michael@0 | 99 | Returns the 0 based column index of the cell of the specified cell or the index of |
michael@0 | 100 | the first column if the cell spans multiple columns. |
michael@0 | 101 | @retval S_OK |
michael@0 | 102 | */ |
michael@0 | 103 | [propget] HRESULT columnIndex |
michael@0 | 104 | ( |
michael@0 | 105 | [out, retval] long *columnIndex |
michael@0 | 106 | ); |
michael@0 | 107 | |
michael@0 | 108 | /** @brief Returns the number of rows occupied by this cell accessible. |
michael@0 | 109 | |
michael@0 | 110 | @param [out] nRowsSpanned |
michael@0 | 111 | Returns the row extent of the specified cell. |
michael@0 | 112 | @retval S_OK |
michael@0 | 113 | */ |
michael@0 | 114 | [propget] HRESULT rowExtent |
michael@0 | 115 | ( |
michael@0 | 116 | [out, retval] long *nRowsSpanned |
michael@0 | 117 | ); |
michael@0 | 118 | |
michael@0 | 119 | /** @brief Returns the row headers as an array of cell accessibles. |
michael@0 | 120 | |
michael@0 | 121 | @param [out] cellAccessibles |
michael@0 | 122 | Pointer to an array of references to cell accessibles. The array is allocated |
michael@0 | 123 | by the server. The client must free it with CoTaskMemFree. |
michael@0 | 124 | @param [out] nRowHeaderCells |
michael@0 | 125 | The number of accessibles returned; the size of the returned array. |
michael@0 | 126 | @retval S_OK |
michael@0 | 127 | @retval S_FALSE if there is no header, [out] values are NULL and 0 respectively |
michael@0 | 128 | */ |
michael@0 | 129 | [propget] HRESULT rowHeaderCells |
michael@0 | 130 | ( |
michael@0 | 131 | [out, size_is(,*nRowHeaderCells)] IUnknown ***cellAccessibles, |
michael@0 | 132 | [out, retval] long *nRowHeaderCells |
michael@0 | 133 | ); |
michael@0 | 134 | |
michael@0 | 135 | /** @brief Translates this cell accessible into the corresponding row index. |
michael@0 | 136 | |
michael@0 | 137 | @param [out] rowIndex |
michael@0 | 138 | Returns the 0 based row index of the specified cell or the index of |
michael@0 | 139 | the first row if the cell spans multiple rows. |
michael@0 | 140 | @retval S_OK |
michael@0 | 141 | */ |
michael@0 | 142 | [propget] HRESULT rowIndex |
michael@0 | 143 | ( |
michael@0 | 144 | [out, retval] long *rowIndex |
michael@0 | 145 | ); |
michael@0 | 146 | |
michael@0 | 147 | /** @brief Returns a boolean value indicating whether this cell is selected. |
michael@0 | 148 | |
michael@0 | 149 | @param [out] isSelected |
michael@0 | 150 | Returns TRUE if the specified cell is selected and FALSE otherwise. |
michael@0 | 151 | @retval S_OK |
michael@0 | 152 | */ |
michael@0 | 153 | [propget] HRESULT isSelected |
michael@0 | 154 | ( |
michael@0 | 155 | [out, retval] boolean *isSelected |
michael@0 | 156 | ); |
michael@0 | 157 | |
michael@0 | 158 | /** @brief Gets the row and column indexes and extents of this cell accessible |
michael@0 | 159 | and whether or not it is selected. |
michael@0 | 160 | |
michael@0 | 161 | This is a convenience function. It is not mandatory to implement it. |
michael@0 | 162 | @param [out] row |
michael@0 | 163 | 0 based row index. |
michael@0 | 164 | @param [out] column |
michael@0 | 165 | 0 based column index. |
michael@0 | 166 | @param [out] rowExtents |
michael@0 | 167 | Number of cells spanned by this cell in this row. |
michael@0 | 168 | @param [out] columnExtents |
michael@0 | 169 | Number of cells spanned by this cell in this column. |
michael@0 | 170 | @param [out] isSelected |
michael@0 | 171 | Indicates if the specified cell is selected. |
michael@0 | 172 | @retval S_OK |
michael@0 | 173 | */ |
michael@0 | 174 | [propget] HRESULT rowColumnExtents |
michael@0 | 175 | ( |
michael@0 | 176 | [out] long *row, |
michael@0 | 177 | [out] long *column, |
michael@0 | 178 | [out] long *rowExtents, |
michael@0 | 179 | [out] long *columnExtents, |
michael@0 | 180 | [out, retval] boolean *isSelected |
michael@0 | 181 | ); |
michael@0 | 182 | |
michael@0 | 183 | /** @brief Returns a reference to the accessbile of the containing table. |
michael@0 | 184 | |
michael@0 | 185 | @param [out] table |
michael@0 | 186 | Returns a reference to the IUnknown of the containing table. |
michael@0 | 187 | @retval S_OK |
michael@0 | 188 | */ |
michael@0 | 189 | [propget] HRESULT table |
michael@0 | 190 | ( |
michael@0 | 191 | [out, retval] IUnknown **table |
michael@0 | 192 | ); |
michael@0 | 193 | |
michael@0 | 194 | } |