summaryrefslogtreecommitdiffstats
path: root/gfx/src/nsThemeConstants.h
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /gfx/src/nsThemeConstants.h
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'gfx/src/nsThemeConstants.h')
-rw-r--r--gfx/src/nsThemeConstants.h296
1 files changed, 296 insertions, 0 deletions
diff --git a/gfx/src/nsThemeConstants.h b/gfx/src/nsThemeConstants.h
new file mode 100644
index 000000000..7825b9c6f
--- /dev/null
+++ b/gfx/src/nsThemeConstants.h
@@ -0,0 +1,296 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// No appearance at all.
+#define NS_THEME_NONE 0
+
+// A typical dialog button.
+#define NS_THEME_BUTTON 1
+
+// A radio element within a radio group.
+#define NS_THEME_RADIO 2
+
+// A checkbox element.
+#define NS_THEME_CHECKBOX 3
+
+// A rectangular button that contains complex content
+// like images (e.g. HTML <button> elements)
+#define NS_THEME_BUTTON_BEVEL 7
+
+// A themed focus outline (for outline:auto)
+#define NS_THEME_FOCUS_OUTLINE 8
+
+// The toolbox that contains the toolbars.
+#define NS_THEME_TOOLBOX 11
+
+// A toolbar in an application window.
+#define NS_THEME_TOOLBAR 12
+
+// A single toolbar button (with no associated dropdown)
+#define NS_THEME_TOOLBARBUTTON 13
+
+// A dual toolbar button (e.g., a Back button with a dropdown)
+#define NS_THEME_DUALBUTTON 14
+
+// The dropdown portion of a toolbar button
+#define NS_THEME_TOOLBARBUTTON_DROPDOWN 15
+
+// Various arrows that go in buttons
+#define NS_THEME_BUTTON_ARROW_UP 16
+#define NS_THEME_BUTTON_ARROW_DOWN 17
+#define NS_THEME_BUTTON_ARROW_NEXT 18
+#define NS_THEME_BUTTON_ARROW_PREVIOUS 19
+
+// A separator. Can be horizontal or vertical.
+#define NS_THEME_SEPARATOR 20
+
+// The gripper for a toolbar.
+#define NS_THEME_TOOLBARGRIPPER 21
+
+// A splitter. Can be horizontal or vertical.
+#define NS_THEME_SPLITTER 22
+
+// A status bar in a main application window.
+#define NS_THEME_STATUSBAR 23
+
+// A single pane of a status bar.
+#define NS_THEME_STATUSBARPANEL 24
+
+// The resizer background area in a status bar
+// for the resizer widget in the corner of a window.
+#define NS_THEME_RESIZERPANEL 25
+
+// The resizer itself.
+#define NS_THEME_RESIZER 26
+
+// List boxes
+#define NS_THEME_LISTBOX 31
+
+// A listbox item
+#define NS_THEME_LISTITEM 32
+
+// A tree widget
+#define NS_THEME_TREEVIEW 41
+
+// A tree item
+#define NS_THEME_TREEITEM 42
+
+// A tree widget twisty
+#define NS_THEME_TREETWISTY 43
+
+// A tree widget branch line
+#define NS_THEME_TREELINE 44
+
+// A listbox or tree widget header
+#define NS_THEME_TREEHEADER 45
+
+// An individual header cell
+#define NS_THEME_TREEHEADERCELL 46
+
+// The sort arrow for a header.
+#define NS_THEME_TREEHEADERSORTARROW 47
+
+// Open tree widget twisty
+#define NS_THEME_TREETWISTYOPEN 48
+
+// A horizontal progress bar.
+#define NS_THEME_PROGRESSBAR 51
+
+// The progress bar's progress indicator
+#define NS_THEME_PROGRESSCHUNK 52
+
+// A vertical progress bar.
+#define NS_THEME_PROGRESSBAR_VERTICAL 53
+
+// A vertical progress chunk
+#define NS_THEME_PROGRESSCHUNK_VERTICAL 54
+
+// A horizontal meter bar.
+#define NS_THEME_METERBAR 55
+
+// The meter bar's meter indicator
+#define NS_THEME_METERCHUNK 56
+
+// A single tab in a tab widget.
+#define NS_THEME_TAB 61
+
+// A single pane (inside the tabpanels container)
+#define NS_THEME_TABPANEL 62
+
+// The tab panels container.
+#define NS_THEME_TABPANELS 65
+
+// The tabs scroll arrows (left/right)
+#define NS_THEME_TAB_SCROLL_ARROW_BACK 66
+#define NS_THEME_TAB_SCROLL_ARROW_FORWARD 67
+
+// A tooltip
+#define NS_THEME_TOOLTIP 71
+
+// A spin control (up/down control for time/date pickers)
+#define NS_THEME_SPINNER 72
+
+// The up button of a spin control
+#define NS_THEME_SPINNER_UPBUTTON 73
+
+// The down button of a spin control
+#define NS_THEME_SPINNER_DOWNBUTTON 74
+
+// The textfield of a spin control
+#define NS_THEME_SPINNER_TEXTFIELD 75
+
+// For HTML's <input type=number>
+#define NS_THEME_NUMBER_INPUT 76
+
+// A scrollbar.
+#define NS_THEME_SCROLLBAR 80
+
+// A small scrollbar.
+#define NS_THEME_SCROLLBAR_SMALL 81
+
+// The scrollbar slider
+#define NS_THEME_SCROLLBAR_HORIZONTAL 82
+#define NS_THEME_SCROLLBAR_VERTICAL 83
+
+// A scrollbar button (up/down/left/right)
+#define NS_THEME_SCROLLBARBUTTON_UP 84
+#define NS_THEME_SCROLLBARBUTTON_DOWN 85
+#define NS_THEME_SCROLLBARBUTTON_LEFT 86
+#define NS_THEME_SCROLLBARBUTTON_RIGHT 87
+
+// The scrollbar track
+#define NS_THEME_SCROLLBARTRACK_HORIZONTAL 88
+#define NS_THEME_SCROLLBARTRACK_VERTICAL 89
+
+// The scrollbar thumb
+#define NS_THEME_SCROLLBARTHUMB_HORIZONTAL 90
+#define NS_THEME_SCROLLBARTHUMB_VERTICAL 91
+
+// A non-disappearing scrollbar.
+#define NS_THEME_SCROLLBAR_NON_DISAPPEARING 92
+
+// A textfield or text area
+#define NS_THEME_TEXTFIELD 95
+
+// The caret of a text area
+#define NS_THEME_CARET 96
+
+// A multiline text field
+#define NS_THEME_TEXTFIELD_MULTILINE 97
+
+// A searchfield
+#define NS_THEME_SEARCHFIELD 98
+
+// A dropdown list.
+#define NS_THEME_MENULIST 101
+
+// The dropdown button(s) that open up a dropdown list.
+#define NS_THEME_MENULIST_BUTTON 102
+
+// The text part of a dropdown list, to left of button
+#define NS_THEME_MENULIST_TEXT 103
+
+// An editable textfield with a dropdown list (a combobox)
+#define NS_THEME_MENULIST_TEXTFIELD 104
+
+// A slider
+#define NS_THEME_SCALE_HORIZONTAL 111
+#define NS_THEME_SCALE_VERTICAL 112
+
+// A slider's thumb
+#define NS_THEME_SCALETHUMB_HORIZONTAL 113
+#define NS_THEME_SCALETHUMB_VERTICAL 114
+
+// If the platform supports it, the left/right chunks
+// of the slider thumb
+#define NS_THEME_SCALETHUMBSTART 115
+#define NS_THEME_SCALETHUMBEND 116
+
+// The ticks for a slider.
+#define NS_THEME_SCALETHUMBTICK 117
+
+// nsRangeFrame and its subparts
+#define NS_THEME_RANGE 120
+#define NS_THEME_RANGE_THUMB 121
+
+// A groupbox
+#define NS_THEME_GROUPBOX 149
+
+// A generic container that always repaints on state
+// changes. This is a hack to make checkboxes and
+// radio buttons work.
+#define NS_THEME_CHECKBOX_CONTAINER 150
+#define NS_THEME_RADIO_CONTAINER 151
+
+// The label part of a checkbox or radio button, used for painting
+// a focus outline.
+#define NS_THEME_CHECKBOX_LABEL 152
+#define NS_THEME_RADIO_LABEL 153
+
+// The focus outline box inside of a button
+#define NS_THEME_BUTTON_FOCUS 154
+
+// Window and dialog backgrounds
+#define NS_THEME_WINDOW 200
+#define NS_THEME_DIALOG 201
+
+// Menu Bar background
+#define NS_THEME_MENUBAR 210
+// Menu Popup background
+#define NS_THEME_MENUPOPUP 211
+// <menu> and <menuitem> appearances
+#define NS_THEME_MENUITEM 212
+#define NS_THEME_CHECKMENUITEM 213
+#define NS_THEME_RADIOMENUITEM 214
+
+// menu checkbox/radio appearances
+#define NS_THEME_MENUCHECKBOX 215
+#define NS_THEME_MENURADIO 216
+#define NS_THEME_MENUSEPARATOR 217
+#define NS_THEME_MENUARROW 218
+// An image in the menu gutter, like in bookmarks or history
+#define NS_THEME_MENUIMAGE 219
+// For text on non-iconic menuitems only
+#define NS_THEME_MENUITEMTEXT 220
+
+// Vista Rebars
+#define NS_THEME_WIN_COMMUNICATIONS_TOOLBOX 221
+#define NS_THEME_WIN_MEDIA_TOOLBOX 222
+#define NS_THEME_WIN_BROWSERTABBAR_TOOLBOX 223
+
+// Titlebar elements on the Mac
+#define NS_THEME_MAC_FULLSCREEN_BUTTON 226
+
+// Mac help button
+#define NS_THEME_MAC_HELP_BUTTON 227
+
+// Vista glass
+#define NS_THEME_WIN_BORDERLESS_GLASS 229
+#define NS_THEME_WIN_GLASS 230
+
+// Windows themed window frame elements
+#define NS_THEME_WINDOW_TITLEBAR 231
+#define NS_THEME_WINDOW_TITLEBAR_MAXIMIZED 232
+#define NS_THEME_WINDOW_FRAME_LEFT 233
+#define NS_THEME_WINDOW_FRAME_RIGHT 234
+#define NS_THEME_WINDOW_FRAME_BOTTOM 235
+#define NS_THEME_WINDOW_BUTTON_CLOSE 236
+#define NS_THEME_WINDOW_BUTTON_MINIMIZE 237
+#define NS_THEME_WINDOW_BUTTON_MAXIMIZE 238
+#define NS_THEME_WINDOW_BUTTON_RESTORE 239
+#define NS_THEME_WINDOW_BUTTON_BOX 240
+#define NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED 241
+
+// moz-apperance style used in setting proper glass margins
+#define NS_THEME_WIN_EXCLUDE_GLASS 242
+
+#define NS_THEME_MAC_VIBRANCY_LIGHT 243
+#define NS_THEME_MAC_VIBRANCY_DARK 244
+#define NS_THEME_MAC_DISCLOSURE_BUTTON_OPEN 245
+#define NS_THEME_MAC_DISCLOSURE_BUTTON_CLOSED 246
+
+#define NS_THEME_GTK_INFO_BAR 247
+#define NS_THEME_MAC_SOURCE_LIST 248
+#define NS_THEME_MAC_SOURCE_LIST_SELECTION 249
+#define NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION 250