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 | /* -*- 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_aria_ARIAStateMap_h_ |
michael@0 | 8 | #define _mozilla_a11y_aria_ARIAStateMap_h_ |
michael@0 | 9 | |
michael@0 | 10 | #include <stdint.h> |
michael@0 | 11 | |
michael@0 | 12 | namespace mozilla { |
michael@0 | 13 | |
michael@0 | 14 | namespace dom { |
michael@0 | 15 | class Element; |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | namespace a11y { |
michael@0 | 19 | namespace aria { |
michael@0 | 20 | |
michael@0 | 21 | /** |
michael@0 | 22 | * List of the ARIA state mapping rules. |
michael@0 | 23 | */ |
michael@0 | 24 | enum EStateRule |
michael@0 | 25 | { |
michael@0 | 26 | eARIANone, |
michael@0 | 27 | eARIAAutoComplete, |
michael@0 | 28 | eARIABusy, |
michael@0 | 29 | eARIACheckableBool, |
michael@0 | 30 | eARIACheckableMixed, |
michael@0 | 31 | eARIACheckedMixed, |
michael@0 | 32 | eARIADisabled, |
michael@0 | 33 | eARIAExpanded, |
michael@0 | 34 | eARIAHasPopup, |
michael@0 | 35 | eARIAInvalid, |
michael@0 | 36 | eARIAMultiline, |
michael@0 | 37 | eARIAMultiSelectable, |
michael@0 | 38 | eARIAOrientation, |
michael@0 | 39 | eARIAPressed, |
michael@0 | 40 | eARIAReadonly, |
michael@0 | 41 | eARIAReadonlyOrEditable, |
michael@0 | 42 | eARIAReadonlyOrEditableIfDefined, |
michael@0 | 43 | eARIARequired, |
michael@0 | 44 | eARIASelectable, |
michael@0 | 45 | eARIASelectableIfDefined, |
michael@0 | 46 | eReadonlyUntilEditable, |
michael@0 | 47 | eIndeterminateIfNoValue, |
michael@0 | 48 | eFocusableUntilDisabled |
michael@0 | 49 | }; |
michael@0 | 50 | |
michael@0 | 51 | /** |
michael@0 | 52 | * Expose the accessible states for the given element accordingly to state |
michael@0 | 53 | * mapping rule. |
michael@0 | 54 | * |
michael@0 | 55 | * @param aRule [in] state mapping rule ID |
michael@0 | 56 | * @param aElement [in] node of the accessible |
michael@0 | 57 | * @param aState [in/out] accessible states |
michael@0 | 58 | * @return true if state map rule ID is valid |
michael@0 | 59 | */ |
michael@0 | 60 | bool MapToState(EStateRule aRule, dom::Element* aElement, uint64_t* aState); |
michael@0 | 61 | |
michael@0 | 62 | } // namespace aria |
michael@0 | 63 | } // namespace a11y |
michael@0 | 64 | } // namespace mozilla |
michael@0 | 65 | |
michael@0 | 66 | #endif |