gfx/src/nsThemeConstants.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

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

mercurial