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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_a11y_AccTypes_h
8 #define mozilla_a11y_AccTypes_h
10 namespace mozilla {
11 namespace a11y {
13 /**
14 * Accessible object types. Each accessible class can have own type.
15 */
16 enum AccType {
17 /**
18 * This set of types is used for accessible creation, keep them together in
19 * alphabetical order since they are used in switch statement.
20 */
21 eNoType,
22 eHTMLBRType,
23 eHTMLButtonType,
24 eHTMLCanvasType,
25 eHTMLCaptionType,
26 eHTMLCheckboxType,
27 eHTMLComboboxType,
28 eHTMLFileInputType,
29 eHTMLGroupboxType,
30 eHTMLHRType,
31 eHTMLImageMapType,
32 eHTMLLiType,
33 eHTMLSelectListType,
34 eHTMLMediaType,
35 eHTMLRadioButtonType,
36 eHTMLRangeType,
37 eHTMLSpinnerType,
38 eHTMLTableType,
39 eHTMLTableCellType,
40 eHTMLTableRowType,
41 eHTMLTextFieldType,
42 eHyperTextType,
43 eImageType,
44 eOuterDocType,
45 ePluginType,
46 eTextLeafType,
48 /**
49 * Other accessible types.
50 */
51 eApplicationType,
52 eHTMLOptGroupType,
53 eImageMapType,
54 eMenuPopupType,
55 eProgressType,
56 eRootType,
57 eXULLabelType,
58 eXULListItemType,
59 eXULTabpanelsType,
60 eXULTreeType,
62 eLastAccType = eXULTreeType
63 };
65 /**
66 * Generic accessible type, different accessible classes can share the same
67 * type, the same accessible class can have several types.
68 */
69 enum AccGenericType {
70 eAutoComplete = 1 << 0,
71 eAutoCompletePopup = 1 << 1,
72 eButton = 1 << 2,
73 eCombobox = 1 << 3,
74 eDocument = 1 << 4,
75 eHyperText = 1 << 5,
76 eList = 1 << 6,
77 eListControl = 1 << 7,
78 eMenuButton = 1 << 8,
79 eSelect = 1 << 9,
80 eTable = 1 << 10,
81 eTableCell = 1 << 11,
82 eTableRow = 1 << 12,
84 eLastAccGenericType = eTableRow
85 };
87 } // namespace a11y
88 } // namespace mozilla
90 #endif // mozilla_a11y_AccTypes_h