-
Notifications
You must be signed in to change notification settings - Fork 2
/
shell.xul
213 lines (188 loc) · 7.07 KB
/
shell.xul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?xml version="1.0"?>
<!DOCTYPE window [
<!ENTITY % webappDTD SYSTEM "chrome://firebox/content/webapp.dtd">
%webappDTD;
]>
<?xml-stylesheet href="resource://firebox/shell.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
<?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
<window id="main-window"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="Firebox"
windowtype="navigator:browser"
screenX="4" screenY="4"
sizemode="normal"
width="500" height="500"
fullscreenbutton="true"
persist="screenX screenY width height sizemode">
<script type="application/javascript" src="resource://firebox/shell.js"/>
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
<commandset id="mainCommandSet">
<command id="cmd_appReload" oncommand="reload()"/>
<command id="cmd_toggleTools" oncommand="toggleTools()"/>
<command id="cmd_toggleFullScreen" oncommand="toggleFullScreen()"/>
<command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
<commandset id="editMenuCommands"/>
</commandset>
<keyset id="mainKeyset">
<key phase="capturing"
modifiers="accel,shift"
command="cmd_appReload"
key="R"/>
<key id="key_toggleTools"
key="&toggleTools.key;"
modifiers="accel,shift"
command="cmd_toggleTools"/>
<key id="key_undo"
key="&undoCmd.key;"
modifiers="accel"/>
<key id="key_redo"
key="&undoCmd.key;"
modifiers="accel,shift"/>
<key id="key_cut"
key="&cutCmd.key;"
modifiers="accel"/>
<key id="key_copy"
key="©Cmd.key;"
modifiers="accel"/>
<key id="key_paste"
key="&pasteCmd.key;"
modifiers="accel"/>
<key id="key_delete"
keycode="VK_DELETE"
command="cmd_delete"/>
<key id="key_selectAll"
key="&selectAllCmd.key;"
modifiers="accel"/>
<key id="key_quitApplication"
key="&quitApplicationCmdUnix.key;"
command="cmd_quitApplication"
modifiers="accel"/>
<key id="key_hideThisAppCmdMac"
key="&hideThisAppCmdMac.key;"
modifiers="accel"/>
<key id="key_hideOtherAppsCmdMac"
key="&hideOtherAppsCmdMac.key;"
modifiers="accel,alt"/>
<key id="key_toggleFullScreen"
key="&toggleFullScreen.key;"
modifiers="meta,control"
command="cmd_toggleFullScreen"/>
</keyset>
<menubar id="main-menubar">
<!-- On Mac, the Quit item gets moved to the Application menu by nsMenuBarX.
- And right now it's the only item in the File menu. So if we put it
- into that menu on Mac, the File menu shows up empty on that OS.
- To work around that problem, we put the item into the Edit menu on Matrlc
- (from which nsMenuBarX still moves it properly), and we don't create
- the File menu in the first place on that OS.
-
- But if you are adding a persistent item to the File menu on Mac,
- then that workaround is no longer necessary, and you can move the Quit
- item up here. -->
<menu id="file-menu"
label="&fileMenu.label;"
accesskey="&fileMenu.accesskey;">
<menupopup id="menu_FilePopup">
<menuitem
id="menu_FileQuitItem"
label="&quitApplicationCmd.label;"
accesskey="&quitApplicationCmd.accesskey;"
command="cmd_quitApplication"/>
</menupopup>
</menu>
<menu id="edit-menu"
label="&editMenu.label;"
accesskey="&editMenu.accesskey;">
<menupopup id="menu_EditPopup"
onpopupshowing="updateEditUIVisibility()"
onpopuphidden="updateEditUIVisibility()">
<menuitem id="menu_mac_hide_app"
label="&hideThisAppCmdMac.label;"
key="key_hideThisAppCmdMac"/>
<menuitem id="menu_mac_hide_others"
label="&hideOtherAppsCmdMac.label;"
key="key_hideOtherAppsCmdMac"/>
<menuitem id="menu_mac_show_all"
label="&showAllAppsCmdMac.label;"/>
<menuitem id="menu_undo"
label="&undoCmd.label;"
key="key_undo"
accesskey="&undoCmd.accesskey;"
command="cmd_undo"/>
<menuitem id="menu_redo"
label="&redoCmd.label;"
key="key_redo"
accesskey="&redoCmd.accesskey;"
command="cmd_redo"/>
<menuseparator/>
<menuitem id="menu_cut"
label="&cutCmd.label;"
key="key_cut"
accesskey="&cutCmd.accesskey;"
command="cmd_cut"/>
<menuitem id="menu_copy"
label="©Cmd.label;"
key="key_copy"
accesskey="©Cmd.accesskey;"
command="cmd_copy"/>
<menuitem id="menu_paste"
label="&pasteCmd.label;"
key="key_paste"
accesskey="&pasteCmd.accesskey;"
command="cmd_paste"/>
<menuitem id="menu_delete"
label="&deleteCmd.label;"
key="key_delete"
accesskey="&deleteCmd.accesskey;"
command="cmd_delete"/>
<menuseparator/>
<menuitem id="menu_selectAll"
label="&selectAllCmd.label;"
key="key_selectAll"
accesskey="&selectAllCmd.accesskey;"
command="cmd_selectAll"/>
</menupopup>
</menu>
<menu id="view-menu"
label="&viewMenu.label;"
accesskey="&viewMenu.accesskey;">
<menupopup id="menu_ViewPopup">
<menuitem id="menu_toggleFullScreen"
label="&toggleFullScreen.label;"
key="key_toggleFullScreen"
command="cmd_toggleFullScreen"/>
<menuitem id="menu_toggleTools"
label="&toggleTools.label;"
key="key_toggleTools"
command="cmd_toggleDevtools"/>
</menupopup>
</menu>
</menubar>
<vbox id="titlebar">
<hbox id="titlebar-content">
<hbox flex="1" id="titlebar-buttonbox-container">
<hbox id="titlebar-buttonbox">
<toolbarbutton class="titlebar-button" id="titlebar-min"/>
<toolbarbutton class="titlebar-button" id="titlebar-max"/>
<toolbarbutton class="titlebar-button" id="titlebar-close"/>
</hbox>
<spacer id="titlebar-spacer" flex="1"/>
</hbox>
</hbox>
</vbox>
<popupset>
<menupopup id="contentAreaContextMenu"
pagemenu="start"
onpopupshowing="return showContextMenu(event, this)"
onpopuphiding="hideContextMenu(event, this)">
</menupopup>
<tooltip id="contentAreaTooltip" page="true" />
</popupset>
<iframe id="content"
type="content-primary"
transparent="true"
flex="1"
context="contentAreaContextMenu"
tooltip="contentAreaTooltip"/>
</window>