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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_a11y_Filters_h__
6 #define mozilla_a11y_Filters_h__
8 #include <stdint.h>
10 /**
11 * Predefined filters used for nsAccIterator and nsAccCollector.
12 */
13 namespace mozilla {
14 namespace a11y {
16 class Accessible;
18 namespace filters {
20 enum EResult {
21 eSkip = 0,
22 eMatch = 1,
23 eSkipSubtree = 2
24 };
26 /**
27 * Return true if the traversed accessible complies with filter.
28 */
29 typedef uint32_t (*FilterFuncPtr) (Accessible*);
31 /**
32 * Matches selected/selectable accessibles in subtree.
33 */
34 uint32_t GetSelected(Accessible* aAccessible);
35 uint32_t GetSelectable(Accessible* aAccessible);
37 /**
38 * Matches row accessibles in subtree.
39 */
40 uint32_t GetRow(Accessible* aAccessible);
42 /**
43 * Matches cell accessibles in children.
44 */
45 uint32_t GetCell(Accessible* aAccessible);
47 /**
48 * Matches embedded objects in children.
49 */
50 uint32_t GetEmbeddedObject(Accessible* aAccessible);
52 } // namespace filters
53 } // namespace a11y
54 } // namespace mozilla
56 #endif