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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | // No appearance at all. |
michael@0 | 6 | #define NS_THEME_NONE 0 |
michael@0 | 7 | |
michael@0 | 8 | // A typical dialog button. |
michael@0 | 9 | #define NS_THEME_BUTTON 1 |
michael@0 | 10 | |
michael@0 | 11 | // A radio element within a radio group. |
michael@0 | 12 | #define NS_THEME_RADIO 2 |
michael@0 | 13 | |
michael@0 | 14 | // A checkbox element. |
michael@0 | 15 | #define NS_THEME_CHECKBOX 3 |
michael@0 | 16 | |
michael@0 | 17 | // A rectangular button that contains complex content |
michael@0 | 18 | // like images (e.g. HTML <button> elements) |
michael@0 | 19 | #define NS_THEME_BUTTON_BEVEL 7 |
michael@0 | 20 | |
michael@0 | 21 | // The toolbox that contains the toolbars. |
michael@0 | 22 | #define NS_THEME_TOOLBOX 11 |
michael@0 | 23 | |
michael@0 | 24 | // A toolbar in an application window. |
michael@0 | 25 | #define NS_THEME_TOOLBAR 12 |
michael@0 | 26 | |
michael@0 | 27 | // A single toolbar button (with no associated dropdown) |
michael@0 | 28 | #define NS_THEME_TOOLBAR_BUTTON 13 |
michael@0 | 29 | |
michael@0 | 30 | // A dual toolbar button (e.g., a Back button with a dropdown) |
michael@0 | 31 | #define NS_THEME_TOOLBAR_DUAL_BUTTON 14 |
michael@0 | 32 | |
michael@0 | 33 | // The dropdown portion of a toolbar button |
michael@0 | 34 | #define NS_THEME_TOOLBAR_BUTTON_DROPDOWN 15 |
michael@0 | 35 | |
michael@0 | 36 | // Various arrows that go in buttons |
michael@0 | 37 | #define NS_THEME_BUTTON_ARROW_UP 16 |
michael@0 | 38 | #define NS_THEME_BUTTON_ARROW_DOWN 17 |
michael@0 | 39 | #define NS_THEME_BUTTON_ARROW_NEXT 18 |
michael@0 | 40 | #define NS_THEME_BUTTON_ARROW_PREVIOUS 19 |
michael@0 | 41 | |
michael@0 | 42 | // A separator. Can be horizontal or vertical. |
michael@0 | 43 | #define NS_THEME_TOOLBAR_SEPARATOR 20 |
michael@0 | 44 | |
michael@0 | 45 | // The gripper for a toolbar. |
michael@0 | 46 | #define NS_THEME_TOOLBAR_GRIPPER 21 |
michael@0 | 47 | |
michael@0 | 48 | // A splitter. Can be horizontal or vertical. |
michael@0 | 49 | #define NS_THEME_SPLITTER 22 |
michael@0 | 50 | |
michael@0 | 51 | // A status bar in a main application window. |
michael@0 | 52 | #define NS_THEME_STATUSBAR 23 |
michael@0 | 53 | |
michael@0 | 54 | // A single pane of a status bar. |
michael@0 | 55 | #define NS_THEME_STATUSBAR_PANEL 24 |
michael@0 | 56 | |
michael@0 | 57 | // The resizer background area in a status bar |
michael@0 | 58 | // for the resizer widget in the corner of a window. |
michael@0 | 59 | #define NS_THEME_STATUSBAR_RESIZER_PANEL 25 |
michael@0 | 60 | |
michael@0 | 61 | // The resizer itself. |
michael@0 | 62 | #define NS_THEME_RESIZER 26 |
michael@0 | 63 | |
michael@0 | 64 | // List boxes |
michael@0 | 65 | #define NS_THEME_LISTBOX 31 |
michael@0 | 66 | |
michael@0 | 67 | // A listbox item |
michael@0 | 68 | #define NS_THEME_LISTBOX_LISTITEM 32 |
michael@0 | 69 | |
michael@0 | 70 | // A tree widget |
michael@0 | 71 | #define NS_THEME_TREEVIEW 41 |
michael@0 | 72 | |
michael@0 | 73 | // A tree item |
michael@0 | 74 | #define NS_THEME_TREEVIEW_TREEITEM 42 |
michael@0 | 75 | |
michael@0 | 76 | // A tree widget twisty |
michael@0 | 77 | #define NS_THEME_TREEVIEW_TWISTY 43 |
michael@0 | 78 | |
michael@0 | 79 | // A tree widget branch line |
michael@0 | 80 | #define NS_THEME_TREEVIEW_LINE 44 |
michael@0 | 81 | |
michael@0 | 82 | // A listbox or tree widget header |
michael@0 | 83 | #define NS_THEME_TREEVIEW_HEADER 45 |
michael@0 | 84 | |
michael@0 | 85 | // An individual header cell |
michael@0 | 86 | #define NS_THEME_TREEVIEW_HEADER_CELL 46 |
michael@0 | 87 | |
michael@0 | 88 | // The sort arrow for a header. |
michael@0 | 89 | #define NS_THEME_TREEVIEW_HEADER_SORTARROW 47 |
michael@0 | 90 | |
michael@0 | 91 | // Open tree widget twisty |
michael@0 | 92 | #define NS_THEME_TREEVIEW_TWISTY_OPEN 48 |
michael@0 | 93 | |
michael@0 | 94 | // A horizontal progress bar. |
michael@0 | 95 | #define NS_THEME_PROGRESSBAR 51 |
michael@0 | 96 | |
michael@0 | 97 | // The progress bar's progress indicator |
michael@0 | 98 | #define NS_THEME_PROGRESSBAR_CHUNK 52 |
michael@0 | 99 | |
michael@0 | 100 | // A vertical progress bar. |
michael@0 | 101 | #define NS_THEME_PROGRESSBAR_VERTICAL 53 |
michael@0 | 102 | |
michael@0 | 103 | // A vertical progress chunk |
michael@0 | 104 | #define NS_THEME_PROGRESSBAR_CHUNK_VERTICAL 54 |
michael@0 | 105 | |
michael@0 | 106 | // A horizontal meter bar. |
michael@0 | 107 | #define NS_THEME_METERBAR 55 |
michael@0 | 108 | |
michael@0 | 109 | // The meter bar's meter indicator |
michael@0 | 110 | #define NS_THEME_METERBAR_CHUNK 56 |
michael@0 | 111 | |
michael@0 | 112 | // A single tab in a tab widget. |
michael@0 | 113 | #define NS_THEME_TAB 61 |
michael@0 | 114 | |
michael@0 | 115 | // A single pane (inside the tabpanels container) |
michael@0 | 116 | #define NS_THEME_TAB_PANEL 62 |
michael@0 | 117 | |
michael@0 | 118 | // The tab panels container. |
michael@0 | 119 | #define NS_THEME_TAB_PANELS 65 |
michael@0 | 120 | |
michael@0 | 121 | // The tabs scroll arrows (left/right) |
michael@0 | 122 | #define NS_THEME_TAB_SCROLLARROW_BACK 66 |
michael@0 | 123 | #define NS_THEME_TAB_SCROLLARROW_FORWARD 67 |
michael@0 | 124 | |
michael@0 | 125 | // A tooltip |
michael@0 | 126 | #define NS_THEME_TOOLTIP 71 |
michael@0 | 127 | |
michael@0 | 128 | // A spin control (up/down control for time/date pickers) |
michael@0 | 129 | #define NS_THEME_SPINNER 72 |
michael@0 | 130 | |
michael@0 | 131 | // The up button of a spin control |
michael@0 | 132 | #define NS_THEME_SPINNER_UP_BUTTON 73 |
michael@0 | 133 | |
michael@0 | 134 | // The down button of a spin control |
michael@0 | 135 | #define NS_THEME_SPINNER_DOWN_BUTTON 74 |
michael@0 | 136 | |
michael@0 | 137 | // The textfield of a spin control |
michael@0 | 138 | #define NS_THEME_SPINNER_TEXTFIELD 75 |
michael@0 | 139 | |
michael@0 | 140 | // For HTML's <input type=number> |
michael@0 | 141 | #define NS_THEME_NUMBER_INPUT 76 |
michael@0 | 142 | |
michael@0 | 143 | // A scrollbar. |
michael@0 | 144 | #define NS_THEME_SCROLLBAR 80 |
michael@0 | 145 | |
michael@0 | 146 | // A small scrollbar. |
michael@0 | 147 | #define NS_THEME_SCROLLBAR_SMALL 81 |
michael@0 | 148 | |
michael@0 | 149 | // A scrollbar button (up/down/left/right) |
michael@0 | 150 | #define NS_THEME_SCROLLBAR_BUTTON_UP 82 |
michael@0 | 151 | #define NS_THEME_SCROLLBAR_BUTTON_DOWN 83 |
michael@0 | 152 | #define NS_THEME_SCROLLBAR_BUTTON_LEFT 84 |
michael@0 | 153 | #define NS_THEME_SCROLLBAR_BUTTON_RIGHT 85 |
michael@0 | 154 | |
michael@0 | 155 | // The scrollbar track |
michael@0 | 156 | #define NS_THEME_SCROLLBAR_TRACK_HORIZONTAL 86 |
michael@0 | 157 | #define NS_THEME_SCROLLBAR_TRACK_VERTICAL 87 |
michael@0 | 158 | |
michael@0 | 159 | // The scrollbar thumb |
michael@0 | 160 | #define NS_THEME_SCROLLBAR_THUMB_HORIZONTAL 88 |
michael@0 | 161 | #define NS_THEME_SCROLLBAR_THUMB_VERTICAL 89 |
michael@0 | 162 | |
michael@0 | 163 | // A non-disappearing scrollbar. |
michael@0 | 164 | #define NS_THEME_SCROLLBAR_NON_DISAPPEARING 90 |
michael@0 | 165 | |
michael@0 | 166 | // A textfield or text area |
michael@0 | 167 | #define NS_THEME_TEXTFIELD 95 |
michael@0 | 168 | |
michael@0 | 169 | // The caret of a text area |
michael@0 | 170 | #define NS_THEME_TEXTFIELD_CARET 96 |
michael@0 | 171 | |
michael@0 | 172 | // A multiline text field |
michael@0 | 173 | #define NS_THEME_TEXTFIELD_MULTILINE 97 |
michael@0 | 174 | |
michael@0 | 175 | // A searchfield |
michael@0 | 176 | #define NS_THEME_SEARCHFIELD 98 |
michael@0 | 177 | |
michael@0 | 178 | // A dropdown list. |
michael@0 | 179 | #define NS_THEME_DROPDOWN 101 |
michael@0 | 180 | |
michael@0 | 181 | // The dropdown button(s) that open up a dropdown list. |
michael@0 | 182 | #define NS_THEME_DROPDOWN_BUTTON 102 |
michael@0 | 183 | |
michael@0 | 184 | // The text part of a dropdown list, to left of button |
michael@0 | 185 | #define NS_THEME_DROPDOWN_TEXT 103 |
michael@0 | 186 | |
michael@0 | 187 | // An editable textfield with a dropdown list (a combobox) |
michael@0 | 188 | #define NS_THEME_DROPDOWN_TEXTFIELD 104 |
michael@0 | 189 | |
michael@0 | 190 | // A slider |
michael@0 | 191 | #define NS_THEME_SCALE_HORIZONTAL 111 |
michael@0 | 192 | #define NS_THEME_SCALE_VERTICAL 112 |
michael@0 | 193 | |
michael@0 | 194 | // A slider's thumb |
michael@0 | 195 | #define NS_THEME_SCALE_THUMB_HORIZONTAL 113 |
michael@0 | 196 | #define NS_THEME_SCALE_THUMB_VERTICAL 114 |
michael@0 | 197 | |
michael@0 | 198 | // If the platform supports it, the left/right chunks |
michael@0 | 199 | // of the slider thumb |
michael@0 | 200 | #define NS_THEME_SCALE_THUMB_START 115 |
michael@0 | 201 | #define NS_THEME_SCALE_THUMB_END 116 |
michael@0 | 202 | |
michael@0 | 203 | // The ticks for a slider. |
michael@0 | 204 | #define NS_THEME_SCALE_TICK 117 |
michael@0 | 205 | |
michael@0 | 206 | // nsRangeFrame and its subparts |
michael@0 | 207 | #define NS_THEME_RANGE 120 |
michael@0 | 208 | #define NS_THEME_RANGE_THUMB 121 |
michael@0 | 209 | |
michael@0 | 210 | // A groupbox |
michael@0 | 211 | #define NS_THEME_GROUPBOX 149 |
michael@0 | 212 | |
michael@0 | 213 | // A generic container that always repaints on state |
michael@0 | 214 | // changes. This is a hack to make checkboxes and |
michael@0 | 215 | // radio buttons work. |
michael@0 | 216 | #define NS_THEME_CHECKBOX_CONTAINER 150 |
michael@0 | 217 | #define NS_THEME_RADIO_CONTAINER 151 |
michael@0 | 218 | |
michael@0 | 219 | // The label part of a checkbox or radio button, used for painting |
michael@0 | 220 | // a focus outline. |
michael@0 | 221 | #define NS_THEME_CHECKBOX_LABEL 152 |
michael@0 | 222 | #define NS_THEME_RADIO_LABEL 153 |
michael@0 | 223 | |
michael@0 | 224 | // The focus outline box inside of a button |
michael@0 | 225 | #define NS_THEME_BUTTON_FOCUS 154 |
michael@0 | 226 | |
michael@0 | 227 | // Window and dialog backgrounds |
michael@0 | 228 | #define NS_THEME_WINDOW 200 |
michael@0 | 229 | #define NS_THEME_DIALOG 201 |
michael@0 | 230 | |
michael@0 | 231 | // Menu Bar background |
michael@0 | 232 | #define NS_THEME_MENUBAR 210 |
michael@0 | 233 | // Menu Popup background |
michael@0 | 234 | #define NS_THEME_MENUPOPUP 211 |
michael@0 | 235 | // <menu> and <menuitem> appearances |
michael@0 | 236 | #define NS_THEME_MENUITEM 212 |
michael@0 | 237 | #define NS_THEME_CHECKMENUITEM 213 |
michael@0 | 238 | #define NS_THEME_RADIOMENUITEM 214 |
michael@0 | 239 | |
michael@0 | 240 | // menu checkbox/radio appearances |
michael@0 | 241 | #define NS_THEME_MENUCHECKBOX 215 |
michael@0 | 242 | #define NS_THEME_MENURADIO 216 |
michael@0 | 243 | #define NS_THEME_MENUSEPARATOR 217 |
michael@0 | 244 | #define NS_THEME_MENUARROW 218 |
michael@0 | 245 | // An image in the menu gutter, like in bookmarks or history |
michael@0 | 246 | #define NS_THEME_MENUIMAGE 219 |
michael@0 | 247 | // For text on non-iconic menuitems only |
michael@0 | 248 | #define NS_THEME_MENUITEMTEXT 220 |
michael@0 | 249 | |
michael@0 | 250 | // Vista Rebars |
michael@0 | 251 | #define NS_THEME_WIN_COMMUNICATIONS_TOOLBOX 221 |
michael@0 | 252 | #define NS_THEME_WIN_MEDIA_TOOLBOX 222 |
michael@0 | 253 | #define NS_THEME_WIN_BROWSER_TAB_BAR_TOOLBOX 223 |
michael@0 | 254 | |
michael@0 | 255 | // Unified toolbar and titlebar elements on the Mac |
michael@0 | 256 | #define NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR 224 |
michael@0 | 257 | #define NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON 226 |
michael@0 | 258 | |
michael@0 | 259 | // Mac help button |
michael@0 | 260 | #define NS_THEME_MOZ_MAC_HELP_BUTTON 227 |
michael@0 | 261 | |
michael@0 | 262 | // Vista glass |
michael@0 | 263 | #define NS_THEME_WIN_BORDERLESS_GLASS 229 |
michael@0 | 264 | #define NS_THEME_WIN_GLASS 230 |
michael@0 | 265 | |
michael@0 | 266 | // Windows themed window frame elements |
michael@0 | 267 | #define NS_THEME_WINDOW_TITLEBAR 231 |
michael@0 | 268 | #define NS_THEME_WINDOW_TITLEBAR_MAXIMIZED 232 |
michael@0 | 269 | #define NS_THEME_WINDOW_FRAME_LEFT 233 |
michael@0 | 270 | #define NS_THEME_WINDOW_FRAME_RIGHT 234 |
michael@0 | 271 | #define NS_THEME_WINDOW_FRAME_BOTTOM 235 |
michael@0 | 272 | #define NS_THEME_WINDOW_BUTTON_CLOSE 236 |
michael@0 | 273 | #define NS_THEME_WINDOW_BUTTON_MINIMIZE 237 |
michael@0 | 274 | #define NS_THEME_WINDOW_BUTTON_MAXIMIZE 238 |
michael@0 | 275 | #define NS_THEME_WINDOW_BUTTON_RESTORE 239 |
michael@0 | 276 | #define NS_THEME_WINDOW_BUTTON_BOX 240 |
michael@0 | 277 | #define NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED 241 |
michael@0 | 278 | |
michael@0 | 279 | // moz-apperance style used in setting proper glass margins |
michael@0 | 280 | #define NS_THEME_WIN_EXCLUDE_GLASS 242 |
michael@0 | 281 |