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 | /* ATK - Accessibility Toolkit |
michael@0 | 2 | * Copyright 2001 Sun Microsystems Inc. |
michael@0 | 3 | * |
michael@0 | 4 | * This library is free software; you can redistribute it and/or |
michael@0 | 5 | * modify it under the terms of the GNU Library General Public |
michael@0 | 6 | * License as published by the Free Software Foundation; either |
michael@0 | 7 | * version 2 of the License, or (at your option) any later version. |
michael@0 | 8 | * |
michael@0 | 9 | * This library is distributed in the hope that it will be useful, |
michael@0 | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
michael@0 | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
michael@0 | 12 | * Library General Public License for more details. |
michael@0 | 13 | * |
michael@0 | 14 | * You should have received a copy of the GNU Library General Public |
michael@0 | 15 | * License along with this library; if not, write to the |
michael@0 | 16 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
michael@0 | 17 | * Boston, MA 02111-1307, USA. |
michael@0 | 18 | */ |
michael@0 | 19 | |
michael@0 | 20 | #ifndef __ATK_TABLE_H__ |
michael@0 | 21 | #define __ATK_TABLE_H__ |
michael@0 | 22 | |
michael@0 | 23 | #include <atk/atkobject.h> |
michael@0 | 24 | |
michael@0 | 25 | #ifdef __cplusplus |
michael@0 | 26 | extern "C" { |
michael@0 | 27 | #endif /* __cplusplus */ |
michael@0 | 28 | |
michael@0 | 29 | /* |
michael@0 | 30 | * AtkTable describes a user-interface component that presents data in |
michael@0 | 31 | * two-dimensional table format. |
michael@0 | 32 | */ |
michael@0 | 33 | |
michael@0 | 34 | |
michael@0 | 35 | #define ATK_TYPE_TABLE (atk_table_get_type ()) |
michael@0 | 36 | #define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE) |
michael@0 | 37 | #define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable) |
michael@0 | 38 | #define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface)) |
michael@0 | 39 | |
michael@0 | 40 | #ifndef _TYPEDEF_ATK_TABLE_ |
michael@0 | 41 | #define _TYPEDEF_ATK_TABLE_ |
michael@0 | 42 | typedef struct _AtkTable AtkTable; |
michael@0 | 43 | #endif |
michael@0 | 44 | typedef struct _AtkTableIface AtkTableIface; |
michael@0 | 45 | |
michael@0 | 46 | struct _AtkTableIface |
michael@0 | 47 | { |
michael@0 | 48 | GTypeInterface parent; |
michael@0 | 49 | |
michael@0 | 50 | AtkObject* (* ref_at) (AtkTable *table, |
michael@0 | 51 | gint row, |
michael@0 | 52 | gint column); |
michael@0 | 53 | gint (* get_index_at) (AtkTable *table, |
michael@0 | 54 | gint row, |
michael@0 | 55 | gint column); |
michael@0 | 56 | gint (* get_column_at_index) (AtkTable *table, |
michael@0 | 57 | gint index_); |
michael@0 | 58 | gint (* get_row_at_index) (AtkTable *table, |
michael@0 | 59 | gint index_); |
michael@0 | 60 | gint (* get_n_columns) (AtkTable *table); |
michael@0 | 61 | gint (* get_n_rows) (AtkTable *table); |
michael@0 | 62 | gint (* get_column_extent_at) (AtkTable *table, |
michael@0 | 63 | gint row, |
michael@0 | 64 | gint column); |
michael@0 | 65 | gint (* get_row_extent_at) (AtkTable *table, |
michael@0 | 66 | gint row, |
michael@0 | 67 | gint column); |
michael@0 | 68 | AtkObject* |
michael@0 | 69 | (* get_caption) (AtkTable *table); |
michael@0 | 70 | G_CONST_RETURN gchar* |
michael@0 | 71 | (* get_column_description) (AtkTable *table, |
michael@0 | 72 | gint column); |
michael@0 | 73 | AtkObject* (* get_column_header) (AtkTable *table, |
michael@0 | 74 | gint column); |
michael@0 | 75 | G_CONST_RETURN gchar* |
michael@0 | 76 | (* get_row_description) (AtkTable *table, |
michael@0 | 77 | gint row); |
michael@0 | 78 | AtkObject* (* get_row_header) (AtkTable *table, |
michael@0 | 79 | gint row); |
michael@0 | 80 | AtkObject* (* get_summary) (AtkTable *table); |
michael@0 | 81 | void (* set_caption) (AtkTable *table, |
michael@0 | 82 | AtkObject *caption); |
michael@0 | 83 | void (* set_column_description) (AtkTable *table, |
michael@0 | 84 | gint column, |
michael@0 | 85 | const gchar *description); |
michael@0 | 86 | void (* set_column_header) (AtkTable *table, |
michael@0 | 87 | gint column, |
michael@0 | 88 | AtkObject *header); |
michael@0 | 89 | void (* set_row_description) (AtkTable *table, |
michael@0 | 90 | gint row, |
michael@0 | 91 | const gchar *description); |
michael@0 | 92 | void (* set_row_header) (AtkTable *table, |
michael@0 | 93 | gint row, |
michael@0 | 94 | AtkObject *header); |
michael@0 | 95 | void (* set_summary) (AtkTable *table, |
michael@0 | 96 | AtkObject *accessible); |
michael@0 | 97 | gint (* get_selected_columns) (AtkTable *table, |
michael@0 | 98 | gint **selected); |
michael@0 | 99 | gint (* get_selected_rows) (AtkTable *table, |
michael@0 | 100 | gint **selected); |
michael@0 | 101 | gboolean (* is_column_selected) (AtkTable *table, |
michael@0 | 102 | gint column); |
michael@0 | 103 | gboolean (* is_row_selected) (AtkTable *table, |
michael@0 | 104 | gint row); |
michael@0 | 105 | gboolean (* is_selected) (AtkTable *table, |
michael@0 | 106 | gint row, |
michael@0 | 107 | gint column); |
michael@0 | 108 | gboolean (* add_row_selection) (AtkTable *table, |
michael@0 | 109 | gint row); |
michael@0 | 110 | gboolean (* remove_row_selection) (AtkTable *table, |
michael@0 | 111 | gint row); |
michael@0 | 112 | gboolean (* add_column_selection) (AtkTable *table, |
michael@0 | 113 | gint column); |
michael@0 | 114 | gboolean (* remove_column_selection) (AtkTable *table, |
michael@0 | 115 | gint column); |
michael@0 | 116 | |
michael@0 | 117 | /* |
michael@0 | 118 | * signal handlers |
michael@0 | 119 | */ |
michael@0 | 120 | void (* row_inserted) (AtkTable *table, |
michael@0 | 121 | gint row, |
michael@0 | 122 | gint num_inserted); |
michael@0 | 123 | void (* column_inserted) (AtkTable *table, |
michael@0 | 124 | gint column, |
michael@0 | 125 | gint num_inserted); |
michael@0 | 126 | void (* row_deleted) (AtkTable *table, |
michael@0 | 127 | gint row, |
michael@0 | 128 | gint num_deleted); |
michael@0 | 129 | void (* column_deleted) (AtkTable *table, |
michael@0 | 130 | gint column, |
michael@0 | 131 | gint num_deleted); |
michael@0 | 132 | void (* row_reordered) (AtkTable *table); |
michael@0 | 133 | void (* column_reordered) (AtkTable *table); |
michael@0 | 134 | void (* model_changed) (AtkTable *table); |
michael@0 | 135 | |
michael@0 | 136 | AtkFunction pad1; |
michael@0 | 137 | AtkFunction pad2; |
michael@0 | 138 | AtkFunction pad3; |
michael@0 | 139 | AtkFunction pad4; |
michael@0 | 140 | }; |
michael@0 | 141 | |
michael@0 | 142 | GType atk_table_get_type (void); |
michael@0 | 143 | |
michael@0 | 144 | AtkObject* atk_table_ref_at (AtkTable *table, |
michael@0 | 145 | gint row, |
michael@0 | 146 | gint column); |
michael@0 | 147 | gint atk_table_get_index_at (AtkTable *table, |
michael@0 | 148 | gint row, |
michael@0 | 149 | gint column); |
michael@0 | 150 | gint atk_table_get_column_at_index (AtkTable *table, |
michael@0 | 151 | gint index_); |
michael@0 | 152 | gint atk_table_get_row_at_index (AtkTable *table, |
michael@0 | 153 | gint index_); |
michael@0 | 154 | gint atk_table_get_n_columns (AtkTable *table); |
michael@0 | 155 | gint atk_table_get_n_rows (AtkTable *table); |
michael@0 | 156 | gint atk_table_get_column_extent_at (AtkTable *table, |
michael@0 | 157 | gint row, |
michael@0 | 158 | gint column); |
michael@0 | 159 | gint atk_table_get_row_extent_at (AtkTable *table, |
michael@0 | 160 | gint row, |
michael@0 | 161 | gint column); |
michael@0 | 162 | AtkObject* |
michael@0 | 163 | atk_table_get_caption (AtkTable *table); |
michael@0 | 164 | G_CONST_RETURN gchar* |
michael@0 | 165 | atk_table_get_column_description (AtkTable *table, |
michael@0 | 166 | gint column); |
michael@0 | 167 | AtkObject* atk_table_get_column_header (AtkTable *table, |
michael@0 | 168 | gint column); |
michael@0 | 169 | G_CONST_RETURN gchar* |
michael@0 | 170 | atk_table_get_row_description (AtkTable *table, |
michael@0 | 171 | gint row); |
michael@0 | 172 | AtkObject* atk_table_get_row_header (AtkTable *table, |
michael@0 | 173 | gint row); |
michael@0 | 174 | AtkObject* atk_table_get_summary (AtkTable *table); |
michael@0 | 175 | void atk_table_set_caption (AtkTable *table, |
michael@0 | 176 | AtkObject *caption); |
michael@0 | 177 | void atk_table_set_column_description |
michael@0 | 178 | (AtkTable *table, |
michael@0 | 179 | gint column, |
michael@0 | 180 | const gchar *description); |
michael@0 | 181 | void atk_table_set_column_header (AtkTable *table, |
michael@0 | 182 | gint column, |
michael@0 | 183 | AtkObject *header); |
michael@0 | 184 | void atk_table_set_row_description (AtkTable *table, |
michael@0 | 185 | gint row, |
michael@0 | 186 | const gchar *description); |
michael@0 | 187 | void atk_table_set_row_header (AtkTable *table, |
michael@0 | 188 | gint row, |
michael@0 | 189 | AtkObject *header); |
michael@0 | 190 | void atk_table_set_summary (AtkTable *table, |
michael@0 | 191 | AtkObject *accessible); |
michael@0 | 192 | gint atk_table_get_selected_columns (AtkTable *table, |
michael@0 | 193 | gint **selected); |
michael@0 | 194 | gint atk_table_get_selected_rows (AtkTable *table, |
michael@0 | 195 | gint **selected); |
michael@0 | 196 | gboolean atk_table_is_column_selected (AtkTable *table, |
michael@0 | 197 | gint column); |
michael@0 | 198 | gboolean atk_table_is_row_selected (AtkTable *table, |
michael@0 | 199 | gint row); |
michael@0 | 200 | gboolean atk_table_is_selected (AtkTable *table, |
michael@0 | 201 | gint row, |
michael@0 | 202 | gint column); |
michael@0 | 203 | gboolean atk_table_add_row_selection (AtkTable *table, |
michael@0 | 204 | gint row); |
michael@0 | 205 | gboolean atk_table_remove_row_selection (AtkTable *table, |
michael@0 | 206 | gint row); |
michael@0 | 207 | gboolean atk_table_add_column_selection (AtkTable *table, |
michael@0 | 208 | gint column); |
michael@0 | 209 | gboolean atk_table_remove_column_selection |
michael@0 | 210 | (AtkTable *table, |
michael@0 | 211 | gint column); |
michael@0 | 212 | |
michael@0 | 213 | #ifdef __cplusplus |
michael@0 | 214 | } |
michael@0 | 215 | #endif /* __cplusplus */ |
michael@0 | 216 | |
michael@0 | 217 | |
michael@0 | 218 | #endif /* __ATK_TABLE_H__ */ |