browser/metro/base/content/browser.xul

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:970b5dffae01
1 <?xml version="1.0" encoding="Windows-1252" ?>
2
3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
4 - License, v. 2.0. If a copy of the MPL was not distributed with this
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6
7 <?xml-stylesheet href="chrome://browser/skin/platform.css" type="text/css"?>
8 <?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
9 <?xml-stylesheet href="chrome://browser/content/bindings.css" type="text/css"?>
10 <?xml-stylesheet href="chrome://browser/skin/cssthrobber.css" type="text/css"?>
11 <?xml-stylesheet href="chrome://browser/skin/tiles.css" type="text/css"?>
12 <?xml-stylesheet href="chrome://branding/content/metro-about.css" type="text/css"?>
13
14 <!DOCTYPE window [
15 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
16 %globalDTD;
17 <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
18 %browserDTD;
19 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
20 %brandDTD;
21 <!ENTITY % prefsDTD SYSTEM "chrome://browser/locale/preferences.dtd">
22 %prefsDTD;
23 <!ENTITY % aboutPanelDTD SYSTEM "chrome://browser/locale/aboutPanel.dtd">
24 %aboutPanelDTD;
25 <!ENTITY % searchPanelDTD SYSTEM "chrome://browser/locale/searchPanel.dtd">
26 %searchPanelDTD;
27 #ifdef MOZ_SERVICES_SYNC
28 <!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
29 %syncBrandDTD;
30 <!ENTITY % syncDTD SYSTEM "chrome://browser/locale/sync.dtd">
31 %syncDTD;
32 #endif
33 <!ENTITY % baseMenuOverlayDTD SYSTEM "chrome://browser/locale/baseMenuOverlay.dtd">
34 %baseMenuOverlayDTD;
35 ]>
36
37 <window id="main-window"
38 onload="Browser.startup();"
39 onunload="Browser.shutdown();"
40 windowtype="navigator:browser"
41 chromedir="&locale.dir;"
42 title="&brandShortName;"
43 width="1366"
44 height="768"
45 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
46 xmlns:svg="http://www.w3.org/2000/svg"
47 xmlns:html="http://www.w3.org/1999/xhtml">
48
49 <script type="application/javascript"
50 src="chrome://browser/content/browser.js"/>
51 <script type="application/javascript"
52 src="chrome://browser/content/browser-scripts.js"/>
53 <script type="application/javascript"
54 src="chrome://browser/content/browser-ui.js"/>
55 <script type="application/javascript"
56 src="chrome://browser/content/Util.js"/>
57 <script type="application/javascript"
58 src="chrome://browser/content/input.js"/>
59 <script type="application/javascript"
60 src="chrome://browser/content/appbar.js"/>
61 <broadcasterset id="broadcasterset">
62 <broadcaster id="bcast_contentShowing"
63 disabled="false"/>
64 <broadcaster id="bcast_urlbarState"
65 mode="editing"/>
66 <broadcaster id="bcast_preciseInput"
67 input="precise"/>
68 <broadcaster id="bcast_windowState"
69 viewstate=""/>
70 <broadcaster id="bcast_loadingState"
71 loading="false"/>
72 <broadcaster id="bcast_chromeState"
73 navbar="visible"/>
74 </broadcasterset>
75
76 <observerset id="observerset">
77 <observes id="observe_contentShowing"
78 element="bcast_contentShowing"
79 attribute="disabled"
80 onbroadcast="BrowserUI.updateUIFocus();"/>
81 </observerset>
82
83 <commandset id="mainCommandSet">
84 <!-- basic navigation -->
85 <command id="cmd_back"
86 disabled="true"
87 oncommand="CommandUpdater.doCommand(this.id);"/>
88 <command id="cmd_forward"
89 disabled="true"
90 oncommand="CommandUpdater.doCommand(this.id);"/>
91 <command id="cmd_handleBackspace"
92 oncommand="BrowserUI.handleBackspace();" />
93 <command id="cmd_handleShiftBackspace"
94 oncommand="BrowserUI.handleShiftBackspace();" />
95 <command id="cmd_reload"
96 oncommand="CommandUpdater.doCommand(this.id);"/>
97 <command id="cmd_forceReload"
98 oncommand="CommandUpdater.doCommand(this.id);"/>
99 <command id="cmd_stop"
100 oncommand="CommandUpdater.doCommand(this.id);"/>
101 <command id="cmd_go"
102 oncommand="CommandUpdater.doCommand(this.id);"/>
103 <command id="cmd_openLocation"
104 oncommand="CommandUpdater.doCommand(this.id);"/>
105 <command id="cmd_home"
106 oncommand="CommandUpdater.doCommand(this.id);"/>
107 <command id="cmd_openFile"
108 oncommand="CommandUpdater.doCommand(this.id);"/>
109 <command id="cmd_savePage"
110 oncommand="CommandUpdater.doCommand(this.id);"/>
111
112 <!-- tabs -->
113 <command id="cmd_newTab"
114 oncommand="CommandUpdater.doCommand(this.id);"/>
115 <command id="cmd_newTabKey"
116 oncommand="CommandUpdater.doCommand(this.id);"/>
117 <command id="cmd_closeTab"
118 oncommand="CommandUpdater.doCommand(this.id);"/>
119 <command id="cmd_undoCloseTab"
120 oncommand="CommandUpdater.doCommand(this.id);"/>
121 #ifdef MOZ_SERVICES_SYNC
122 <command id="cmd_remoteTabs"
123 oncommand="CommandUpdater.doCommand(this.id);"/>
124 #endif
125 <command id="cmd_newPrivateTab"
126 oncommand="BrowserUI.addAndShowPrivateTab();"/>
127
128 <!-- misc -->
129 <command id="cmd_close"
130 oncommand="CommandUpdater.doCommand(this.id);"/>
131 <command id="cmd_quit"
132 oncommand="CommandUpdater.doCommand(this.id);"/>
133 <command id="cmd_actions"
134 oncommand="CommandUpdater.doCommand(this.id);"/>
135 <command id="cmd_panel"
136 oncommand="CommandUpdater.doCommand(this.id);"/>
137 <command id="cmd_flyout_back"
138 oncommand="CommandUpdater.doCommand(this.id);"/>
139 <command id="cmd_addBookmark"
140 oncommand="CommandUpdater.doCommand(this.id);"/>
141 <command id="cmd_bookmarks"
142 oncommand="CommandUpdater.doCommand(this.id);"/>
143 <command id="cmd_history"
144 oncommand="CommandUpdater.doCommand(this.id);"/>
145 <command id="cmd_sanitize"
146 oncommand="CommandUpdater.doCommand(this.id);"/>
147 <command id="cmd_contextUI"
148 oncommand="CommandUpdater.doCommand(this.id);"/>
149 <command id="cmd_reportingCrashesSubmitURLs"
150 oncommand="CommandUpdater.doCommand(this.id);"/>
151
152 <!-- scrolling -->
153 <command id="cmd_scrollPageUp"
154 oncommand="CommandUpdater.doCommand(this.id);"/>
155 <command id="cmd_scrollPageDown"
156 oncommand="CommandUpdater.doCommand(this.id);"/>
157
158 <!-- editing -->
159 <command id="cmd_cut"
160 oncommand="CommandUpdater.doCommand(this.id);"/>
161 <command id="cmd_copy"
162 oncommand="CommandUpdater.doCommand(this.id);"/>
163 <command id="cmd_copylink"
164 oncommand="CommandUpdater.doCommand(this.id);"/>
165 <command id="cmd_paste"
166 oncommand="CommandUpdater.doCommand(this.id);"/>
167 <command id="cmd_delete"
168 oncommand="CommandUpdater.doCommand(this.id);"/>
169 <command id="cmd_selectAll"
170 oncommand="CommandUpdater.doCommand(this.id);"/>
171
172 <!-- find -->
173 <command id="cmd_findPrevious"
174 oncommand="FindHelperUI.goToPrevious();"/>
175 <command id="cmd_findNext"
176 oncommand="FindHelperUI.goToNext();"/>
177 <command id="cmd_findClose"
178 oncommand="FindHelperUI.hide();"/>
179 <command id="cmd_find"
180 oncommand="FindHelperUI.show();"/>
181 </commandset>
182
183 <keyset id="mainKeyset">
184 <!-- basic navigation -->
185 <key id="key_back"
186 keycode="VK_LEFT"
187 command="cmd_back"
188 modifiers="alt"/>
189 <key id="key_forward"
190 keycode="VK_RIGHT"
191 command="cmd_forward"
192 modifiers="alt"/>
193 <key id="key_backspace"
194 keycode="VK_BACK"
195 command="cmd_handleBackspace"/>
196 <key id="key_shift_backspace"
197 keycode="VK_BACK"
198 command="cmd_handleShiftBackspace"
199 modifiers="shift"/>
200 <key id="key_reload"
201 keycode="VK_F5"
202 command="cmd_reload"/>
203 <key id="key_reload2"
204 key="&reload.key;"
205 modifiers="accel"
206 command="cmd_reload"/>
207 <key id="key_forceReload"
208 keycode="VK_F5"
209 modifiers="shift"
210 command="cmd_forceReload"/>
211 <key id="key_forceReload2"
212 key="&reload.key;"
213 modifiers="accel,shift"
214 command="cmd_forceReload"/>
215 <key id="key_focusURL"
216 key="&focusURL.key;"
217 modifiers="accel"
218 command="cmd_openLocation"/>
219 <key id="key_focusURL2"
220 key="&urlbar.accesskey;"
221 modifiers="alt"
222 command="cmd_openLocation"/>
223 <key id="key_home"
224 keycode="VK_HOME"
225 modifiers="accel"
226 command="cmd_home"/>
227 <key id="key_open"
228 key="&openFile.key;"
229 modifiers="accel"
230 command="cmd_openFile"/>
231 <key id="key_save"
232 key="&savePage.key;"
233 modifiers="accel"
234 command="cmd_savePage"/>
235
236 <!-- misc -->
237 <key id="key_find"
238 key="&find.key;"
239 modifiers="accel"
240 command="cmd_find"/>
241 <key id="key_find"
242 key="/"
243 command="cmd_find"/>
244 <key id="key_findNext"
245 keycode="VK_F3"
246 command="cmd_findNext"/>
247 <key id="key_findNext2"
248 key="&findNext.key;"
249 modifiers="accel"
250 command="cmd_findNext"/>
251 <key id="key_findPrevious"
252 keycode="VK_F3"
253 modifiers="shift"
254 command="cmd_findPrevious"/>
255 <key id="key_findPrevious2"
256 key="&findNext.key;"
257 modifiers="accel,shift"
258 command="cmd_findPrevious"/>
259 <key id="key_quit"
260 key="&quit.key;"
261 modifiers="accel"
262 command="cmd_quit"/>
263 <key id="key_addBoomkark"
264 key="&addBookmark.key;"
265 modifiers="accel"
266 command="cmd_addBookmark"/>
267
268 <!-- development/testing -->
269 <key id="key_console"
270 key="&jsConsole.key;"
271 modifiers="accel,shift"
272 oncommand="PanelUI.show('console-container')"/>
273 <key id="key_options"
274 key="&optionsFlyout.key;"
275 modifiers="accel,shift"
276 oncommand="FlyoutPanelsUI.show('PrefsFlyoutPanel')" />
277 <key id="key_options"
278 key="&aboutFlyout.key;"
279 modifiers="accel,shift"
280 oncommand="FlyoutPanelsUI.show('AboutFlyoutPanel')" />
281 <!--
282 Temporarily disabled until we can have sync prefs together with the
283 Desktop browser's sync prefs.
284 #ifdef MOZ_SERVICES_SYNC
285 <key id="key_options"
286 key="&syncFlyout.key;"
287 modifiers="accel,shift"
288 oncommand="FlyoutPanelsUI.show('SyncFlyoutPanel')" />
289 #endif
290 -->
291
292 <!-- manage tabs -->
293 <key id="key_newTab"
294 key="&newTab.key;"
295 modifiers="accel"
296 command="cmd_newTabKey"/>
297 <key id="key_newTab2"
298 key="&newTab2.key;"
299 modifiers="accel"
300 command="cmd_newTabKey"/>
301 <key id="key_closeTab"
302 key="&closeTab.key;"
303 modifiers="accel"
304 command="cmd_closeTab"/>
305 <key id="key_closeTab2"
306 keycode="VK_F4"
307 modifiers="accel"
308 command="cmd_closeTab"/>
309 <key id="key_undoCloseTab"
310 key="&newTab.key;"
311 modifiers="accel,shift"
312 command="cmd_undoCloseTab"/>
313 <key id="key_newPrivateTab"
314 key="&newPrivateTab.key;"
315 modifiers="accel,shift"
316 command="cmd_newPrivateTab"/>
317
318 <!-- tab selection -->
319 <key id="key_nextTab"
320 oncommand="BrowserUI.selectNextTab();"
321 keycode="VK_TAB"
322 modifiers="accel"/>
323 <key id="key_nextTab2"
324 oncommand="BrowserUI.selectNextTab();"
325 keycode="VK_PAGE_DOWN"
326 modifiers="accel"/>
327 <key id="key_prevTab"
328 oncommand="BrowserUI.selectPreviousTab();"
329 keycode="VK_TAB"
330 modifiers="accel,shift"/>
331 <key id="key_prevTab2"
332 oncommand="BrowserUI.selectPreviousTab();"
333 keycode="VK_PAGE_UP"
334 modifiers="accel"/>
335 <key id="key_selectTab1"
336 oncommand="BrowserUI.selectTabAtIndex(0);"
337 key="1"
338 modifiers="accel"/>
339 <key id="key_selectTab2"
340 oncommand="BrowserUI.selectTabAtIndex(1);"
341 key="2"
342 modifiers="accel"/>
343 <key id="key_selectTab3"
344 oncommand="BrowserUI.selectTabAtIndex(2);"
345 key="3"
346 modifiers="accel"/>
347 <key id="key_selectTab4"
348 oncommand="BrowserUI.selectTabAtIndex(3);"
349 key="4"
350 modifiers="accel"/>
351 <key id="key_selectTab5"
352 oncommand="BrowserUI.selectTabAtIndex(4);"
353 key="5"
354 modifiers="accel"/>
355 <key id="key_selectTab6"
356 oncommand="BrowserUI.selectTabAtIndex(5);"
357 key="6"
358 modifiers="accel"/>
359 <key id="key_selectTab7"
360 oncommand="BrowserUI.selectTabAtIndex(6);"
361 key="7"
362 modifiers="accel"/>
363 <key id="key_selectTab8"
364 oncommand="BrowserUI.selectTabAtIndex(7);"
365 key="8"
366 modifiers="accel"/>
367 <key id="key_selectLastTab"
368 oncommand="BrowserUI.selectTabAtIndex(-1);"
369 key="9"
370 modifiers="accel"/>
371 </keyset>
372
373 <stack id="stack"
374 flex="1">
375 <observes element="bcast_urlbarState"
376 attribute="*"/>
377 <observes element="bcast_windowState"
378 attribute="*"/>
379 <!-- Page Area -->
380 <vbox id="page">
381 <vbox id="tray"
382 class="tray-toolbar"
383 observes="bcast_windowState" >
384 <!-- Tabs -->
385 <hbox id="tabs-container"
386 observes="bcast_windowState">
387 <box id="tabs"
388 flex="1"
389 observes="bcast_preciseInput"
390 onselect="BrowserUI.selectTabAndDismiss(this);"
391 onclosetab="BrowserUI.closeTab(this);"/>
392 <vbox id="tabs-controls">
393 <toolbarbutton id="newtab-button"
394 command="cmd_newTab"
395 label="&newtab.label;"/>
396 </vbox>
397 </hbox>
398 </vbox> <!-- end tray -->
399
400 <!-- Content viewport -->
401 <stack id="content-viewport">
402 <observes element="bcast_windowState"
403 attribute="startpage"/>
404 <observes element="bcast_chromeState"
405 attribute="navbar"/>
406 <deck id="browsers"
407 flex="1"
408 observes="bcast_preciseInput"/>
409 <box id="vertical-scroller"
410 class="scroller"
411 orient="vertical"
412 end="0"
413 top="0"/>
414 <box id="horizontal-scroller"
415 class="scroller"
416 orient="horizontal"
417 left="0"
418 bottom="0"/>
419
420 <!-- Content touch selection overlay -->
421 <box class="selection-overlay-hidden"
422 id="content-selection-overlay"/>
423
424 <!-- Overlay to dim screen when autocomplete shows up -->
425 <hbox id="autocomplete-overlay"
426 onclick="ContextUI.dismiss()"/>
427 </stack>
428 </vbox>
429
430 <html:div id="overlay-back"
431 class="overlay-button"
432 observes="cmd_back">
433 </html:div>
434 <html:div id="overlay-plus"
435 class="overlay-button"
436 observes="cmd_back">
437 </html:div>
438
439 <!-- Navigation bar -->
440 <appbar id="navbar"
441 mousethrough="never"
442 visible="true">
443 <hbox id="progress-container"
444 layer="true"
445 observes="bcast_windowState">
446 <hbox id="progress-control" />
447 </hbox>
448
449 <vbox id="toolbar-overlay"
450 flex="1">
451 <!-- Autocomplete -->
452 <scrollbox id="urlbar-autocomplete-scroll"
453 flex="1"
454 observes="bcast_urlbarState">
455 <hbox id="urlbar-autocomplete"
456 observes="bcast_windowState"/>
457 </scrollbox>
458
459 <!-- Main toolbar -->
460 <toolbar id="toolbar"
461 flex="1"
462 observes="bcast_windowState">
463 <toolbarbutton id="back-button"
464 class="appbar-primary"
465 command="cmd_back"/>
466 <toolbarbutton id="forward-button"
467 class="appbar-primary"
468 command="cmd_forward"/>
469
470 <hbox id="urlbar"
471 flex="1">
472 <observes element="bcast_urlbarState"
473 attribute="*"/>
474 <observes element="bcast_loadingState"
475 attribute="*"/>
476 <box id="identity-box"
477 align="center"
478 role="button">
479 <image id="identity-icon"/>
480 </box>
481
482 <textbox id="urlbar-edit"
483 type="url"
484 flex="1"
485 autocompletesearch="history"
486 autocompletepopup="urlbar-autocomplete"
487 completeselectedindex="true"
488 placeholder="&urlbar.emptytext;"
489 tabscrolling="true" />
490
491 <toolbarbutton id="go-button"
492 class="urlbar-button"
493 command="cmd_go"/>
494 <toolbarbutton id="reload-button"
495 class="urlbar-button"
496 oncommand="CommandUpdater.doCommand(
497 event.shiftKey ? 'cmd_forceReload'
498 : 'cmd_reload');"/>
499 <toolbarbutton id="stop-button"
500 class="urlbar-button"
501 command="cmd_stop"/>
502 </hbox>
503
504 <stack id="toolbar-contextual">
505 <observes element="bcast_windowState"
506 attribute="*"/>
507 <observes element="bcast_urlbarState"
508 attribute="*"/>
509 <hbox id="toolbar-context-page" pack="end">
510 <circularprogressindicator id="download-progress"
511 class="appbar-primary"
512 oncommand="MetroDownloadsView.onDownloadButton()"/>
513 <toolbarbutton id="star-button"
514 class="appbar-primary hide-on-start"
515 type="checkbox"
516 oncommand="Appbar.onStarButton()"/>
517 <toolbarbutton id="pin-button"
518 class="appbar-primary hide-on-start"
519 type="checkbox"
520 oncommand="Appbar.onPinButton()"/>
521 <toolbarbutton id="menu-button"
522 class="appbar-primary"
523 oncommand="Appbar.onMenuButton(event)"/>
524 </hbox>
525
526 <hbox id="toolbar-context-autocomplete"
527 pack="end">
528 <toolbarbutton id="close-button"
529 class="appbar-primary"
530 oncommand="Appbar.onAutocompleteCloseButton()"/>
531 </hbox>
532 </stack>
533 </toolbar>
534 </vbox>
535 </appbar>
536
537 <vbox id="panel-container"
538 class="window-width window-height meta"
539 hidden="true"
540 observes="bcast_windowState">
541 <hbox id="panel-header">
542 <toolbarbutton id="panel-close-button"
543 class="appbar-primary"
544 command="cmd_panel"/>
545 </hbox>
546
547 <deck id="panel-items"
548 selectedIndex="0"
549 flex="1" >
550 <scrollbox id="bookmarks-container"
551 flex="1">
552 <richgrid id="bookmarks-list"
553 class="canSnapTiles"
554 set-name="bookmarks"
555 seltype="multiple"
556 flex="1"/>
557 </scrollbox>
558 <scrollbox id="history-container"
559 flex="1">
560 <richgrid id="history-list"
561 class="canSnapTiles"
562 set-name="recentHistory"
563 seltype="multiple"
564 flex="1"/>
565 </scrollbox>
566 <scrollbox id="remotetabs-container"
567 flex="1">
568 <richgrid id="remotetabs-list"
569 class="canSnapTiles"
570 set-name="remoteTabs"
571 seltype="single"
572 flex="1"/>
573 </scrollbox>
574 <vbox id="console-container"
575 flex="1">
576 <vbox id="console-header"
577 class="panel-list">
578 <label class="panel-header"
579 value="&consoleHeader.label;"/>
580 <hbox align="center">
581 <label value="&consoleCodeEval.label;"
582 control="console-eval-textbox"/>
583 <textbox id="console-eval-textbox"
584 class="toolbar search-bar"
585 value=""
586 flex="1"
587 onkeypress="ConsolePanelView.onEvalKeyPress(event)"/>
588 <button id="console-button-eval"
589 class="show-text"
590 label="&consoleEvaluate.label;"
591 oncommand="ConsolePanelView.evaluateTypein()"/>
592 </hbox>
593 <hbox align="center"
594 pack="end">
595 <checkbox id="console-follow-checkbox" label="&consoleFollowCheckbox.label;" checked="true"/>
596 <spacer flex="1"/>
597 <radiogroup id="console-filter" orient="horizontal"
598 oncommand="ConsolePanelView.changeMode();">
599 <radio id="console-filter-all"
600 value="all"
601 selected="true"
602 label="&consoleAll.label;"/>
603 <radio id="console-filter-messages"
604 value="message"
605 label="&consoleMessages.label;" />
606 <radio id="console-filter-warnings"
607 value="warning"
608 label="&consoleWarnings.label;"/>
609 <radio id="console-filter-errors"
610 value="error"
611 label="&consoleErrors.label;"/>
612 </radiogroup>
613 <button id="console-clear"
614 class="show-text"
615 label="&consoleClear.label;"
616 oncommand="ConsolePanelView.clearConsole();"/>
617 <button id="console-copy"
618 class="show-text"
619 label="&consoleCopyAll.label;"
620 oncommand="ConsolePanelView.copyAll();"/>
621 </hbox>
622 </vbox>
623
624 <richlistbox id="console-box"
625 class="panel-list console-box"
626 flex="1"
627 onkeypress="ConsolePanelView.onConsoleBoxKeyPress(event)"
628 oncontextmenu="ConsolePanelView.onContextMenu(event);"/>
629 </vbox>
630 </deck>
631 </vbox>
632
633 <!-- Find bar -->
634 <appbar id="findbar"
635 class="window-width"
636 pack="start">
637 <textbox id="findbar-textbox"
638 type="search"
639 oncommand="FindHelperUI.search(this.value)"
640 oninput="FindHelperUI.updateCommands(this.value); "/>
641
642 <toolbarbutton id="findbar-previous-button"
643 class="appbar-secondary"
644 command="cmd_findPrevious"/>
645 <toolbarbutton id="findbar-next-button"
646 class="appbar-secondary"
647 command="cmd_findNext"/>
648
649 <spacer flex="1"/>
650
651 <toolbarbutton id="findbar-close-button"
652 class="appbar-secondary"
653 command="cmd_findClose"/>
654 </appbar>
655
656 <!-- Context button bar -->
657 <appbar id="contextappbar">
658 <toolbar id="contextualactions-tray"
659 labelled="true"
660 flex="1">
661 <toolbarbutton id="pin-selected-button"
662 class="appbar-primary"
663 label-uses-set-name="true"
664 hidden="true"
665 fade="true"
666 oncommand="Appbar.dispatchContextualAction('pin')"/>
667 <toolbarbutton id="unpin-selected-button"
668 class="appbar-primary"
669 label-uses-set-name="true"
670 hidden="true"
671 fade="true"
672 oncommand="Appbar.dispatchContextualAction('unpin')"/>
673 <toolbarbutton id="hide-selected-button"
674 class="appbar-primary"
675 label-uses-set-name="true"
676 hidden="true"
677 fade="true"
678 oncommand="Appbar.dispatchContextualAction('unpin')"/>
679 <toolbarbutton id="delete-selected-button"
680 class="appbar-primary"
681 hidden="true"
682 fade="true"
683 oncommand="Appbar.dispatchContextualAction('delete')"/>
684 <toolbarbutton id="restore-selected-button"
685 class="appbar-primary"
686 hidden="true"
687 fade="true"
688 oncommand="Appbar.dispatchContextualAction('restore')"/>
689 <toolbarbutton id="clear-selected-button"
690 class="appbar-primary"
691 hidden="true"
692 fade="true"
693 oncommand="Appbar.dispatchContextualAction('clear')"/>
694 </toolbar>
695 </appbar>
696 <autoscroller class="autoscroller"
697 id="autoscrollerid"/>
698 <flyoutpanel id="about-flyoutpanel"
699 class="flyout-narrow"
700 headertext="&aboutHeader.title;">
701 <label align="start">
702 <html:img src="chrome://branding/content/metro-about-wordmark.png"
703 alt="&aboutHeader.product.label;"/>
704 </label>
705 <label value="&aboutHeader.company.label;"
706 linewrap="true"/>
707 #expand <label id="about-version-label">__MOZ_APP_VERSION__</label>
708 <vbox id="updateBox">
709 #ifdef MOZ_UPDATER
710 <deck id="updateDeck"
711 orient="vertical">
712 <hbox id="updateButtonBox"
713 align="center">
714 <button id="updateButton"
715 align="start"
716 oncommand="FlyoutPanelsUI.AboutFlyoutPanel.appUpdater.buttonOnCommand();"/>
717 <spacer flex="1"/>
718 </hbox>
719 <hbox id="checkingForUpdates"
720 align="center">
721 <image class="update-throbber"/>
722 <description flex="1">
723 &update.checkingForUpdates;
724 </description>
725 </hbox>
726 <hbox id="checkingAddonCompat"
727 align="center">
728 <image class="update-throbber"/>
729 <description flex="1">
730 &update.checkingAddonCompat;
731 </description>
732 </hbox>
733 <hbox id="downloading"
734 align="center">
735 <image class="update-throbber"/>
736 <description flex="1">
737 &update.downloading.start;
738 <html:span id="downloadStatus">
739 </html:span>
740 &update.downloading.end;
741 </description>
742 </hbox>
743 <hbox id="applying"
744 align="center">
745 <image class="update-throbber"/>
746 <description flex="1">
747 &update.applying;
748 </description>
749 </hbox>
750 <hbox id="downloadFailed"
751 align="center">
752 <label>
753 &update.failed.start;
754 </label>
755 <label id="failedLink"
756 class="text-link">
757 &update.failed.linkText;
758 </label>
759 <label>
760 &update.failed.end;
761 </label>
762 </hbox>
763 <hbox id="adminDisabled"
764 align="center">
765 <label linewrap="true">
766 &update.adminDisabled;
767 </label>
768 </hbox>
769 <hbox id="noUpdatesFound"
770 align="center">
771 <label linewrap="true">
772 &update.noUpdatesFound;
773 </label>
774 </hbox>
775 <hbox id="otherInstanceHandlingUpdates"
776 align="center">
777 <label linewrap="true">
778 &update.otherInstanceHandlingUpdates;
779 </label>
780 </hbox>
781 <hbox id="manualUpdate"
782 align="center">
783 <label>
784 &update.manual.start;
785 </label>
786 <label id="manualLink"
787 linewrap="true"
788 class="text-link"/>
789 <label>
790 &update.manual.end;
791 </label>
792 </hbox>
793 </deck>
794 #endif
795 </vbox>
796 #if MOZ_UPDATE_CHANNEL != release
797 #ifdef MOZ_UPDATER
798 <description id="currentChannelText"
799 class="text-blurb">
800 &channel.description.start;
801 <label id="currentChannel" linewrap="true"/>
802 &channel.description.end;
803 </description>
804 #endif
805 #endif
806 <label id="about-policy-label"
807 linewrap="true"
808 onclick="FlyoutPanelsUI.AboutFlyoutPanel.onPolicyClick(event);"
809 class="text-link"
810 value="&aboutHeader.policy.label;"/>
811 <spacer class="flyoutpanel-hack"/>
812 </flyoutpanel>
813 #ifdef MOZ_SERVICES_SYNC
814 <flyoutpanel id="sync-flyoutpanel"
815 class="flyout-narrow"
816 headertext="&sync.flyout.title;">
817 <vbox id="sync-presetup-container"
818 collapsed="true">
819 <description>&sync.flyout.presetup.description1;</description>
820 <separator />
821 <hbox onclick="FlyoutPanelsUI.SyncFlyoutPanel.startEasySetup();"
822 align="center"
823 class="text-link">
824 <image src="chrome://browser/skin/images/plus-34.png" />
825 <separator />
826 <label value="&sync.flyout.presetup.setup.label;"
827 linewrap="true"
828 class="text-link" />
829 <spacer flex="1" />
830 </hbox>
831 </vbox>
832 <vbox id="sync-setup-container"
833 collapsed="true">
834 <description>&sync.flyout.setup.description1;</description>
835 <description>&sync.flyout.setup.description2;</description>
836 <separator />
837 <vbox flex="1"
838 pack="center"
839 align="start">
840 <textbox id="sync-setup-code1"
841 class="syncJPAKECode"
842 placeholder="...."
843 disabled="true" />
844 <textbox id="sync-setup-code2"
845 class="syncJPAKECode"
846 placeholder="...."
847 disabled="true" />
848 <hbox>
849 <textbox id="sync-setup-code3"
850 class="syncJPAKECode"
851 placeholder="...."
852 disabled="true" />
853 <vbox flex="1"
854 pack="center"
855 align="center">
856 <cssthrobber id='sync-setup-throbber'
857 flex='1'
858 class='syncThrobber'
859 collapsed='true'
860 disabled='true' />
861 </vbox>
862 </hbox>
863 </vbox>
864 <separator />
865 <description class="text-link"
866 flex="1"
867 onclick="FlyoutPanelsUI.SyncFlyoutPanel.abortEasySetup();
868 FlyoutPanelsUI.SyncFlyoutPanel.showManualSetup()">
869 &sync.flyout.setup.manual.label_2;
870 </description>
871 <separator />
872 <description>
873 &sync.flyout.setup.description3;
874 </description>
875 <description>
876 &sync.flyout.setup.description4_2;
877 </description>
878 <description class="syncInstructionText">
879 &sync.flyout.setup.description5_2;
880 </description>
881 <description class="syncInstructionText">
882 &sync.flyout.setup.description6_2;
883 </description>
884 </vbox>
885
886 <vbox id="sync-manualsetup-container"
887 collapsed="true">
888 <description>
889 &sync.flyout.manualsetup.description1_2;
890 </description>
891 <separator/>
892 <textbox id="sync-manualsetup-account"
893 placeholder="&sync.flyout.manualsetup.account.placeholder;"
894 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updateManualSetupConnectButtonState();"/>
895 <textbox id="sync-manualsetup-password"
896 placeholder="&sync.flyout.manualsetup.password.placeholder;"
897 type="password"
898 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updateManualSetupConnectButtonState();"/>
899 <textbox id="sync-manualsetup-syncKey"
900 placeholder="&sync.flyout.manualsetup.recoveryKey.placeholder;"
901 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updateManualSetupConnectButtonState();"/>
902 <description id="sync-manualsetup-failure"
903 class="syncErrorText"
904 collapsed="true" />
905 <separator />
906 <hbox>
907 <button id="sync-manualsetup-connect"
908 class="syncButton"
909 oncommand="FlyoutPanelsUI.SyncFlyoutPanel.manualSetupConnect();"
910 label="&sync.flyout.manualsetup.connect.label;"
911 disabled="true" />
912 <spacer flex="1" />
913 </hbox>
914 </vbox>
915
916 <vbox id="sync-setupsuccess-container"
917 collapsed="true">
918 <description>
919 &sync.flyout.setupsuccess.description1;
920 </description>
921 <description>
922 &sync.flyout.setupsuccess.description2;
923 </description>
924 </vbox>
925
926 <vbox id="sync-setupfailure-container"
927 collapsed="true">
928 <description>
929 &sync.flyout.setupfailure.description;
930 </description>
931 <hbox>
932 <button class="syncButton"
933 oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onCancelButton();"
934 label="&sync.flyout.setupfailure.cancelButton;" />
935 <button class="syncButton"
936 oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onTryAgainButton();"
937 label="&sync.flyout.setupfailure.tryAgainButton;" />
938 </hbox>
939 </vbox>
940
941 <vbox id="sync-connected-container"
942 collapsed="true">
943 <description id="sync-connected-account"
944 class="syncHeader" />
945 <separator />
946 <hbox>
947 <vbox>
948 <description id="sync-connected-device"
949 class="syncHeader" />
950 <description id="sync-connected-lastSynced"
951 class="syncSecondaryText" />
952 </vbox>
953 <cssthrobber id="sync-connected-throbber"
954 class="syncThrobber"
955 collapsed="true"
956 disabled="true" />
957 </hbox>
958 <label id="sync-disconnect-label"
959 class="text-link"
960 onclick="FlyoutPanelsUI.SyncFlyoutPanel.onDisconnectLink();">
961 &sync.flyout.connected.disconnect;
962 </label>
963 <separator />
964 <vbox id="sync-disconnect-warning" collapsed="true">
965 <description class="syncHeader">
966 &sync.flyout.connected.disconnectWarningHeader;
967 </description>
968 <description class="syncSecondaryText">
969 &sync.flyout.connected.disconnectWarning;
970 </description>
971 <hbox>
972 <separator />
973 <button label="&sync.flyout.connected.cancel;"
974 oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onDisconnectCancel();" />
975 <button label="&sync.flyout.connected.disconnect;"
976 oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onDisconnectButton();" />
977
978 </hbox>
979 <separator />
980 </vbox>
981 <hbox onclick="FlyoutPanelsUI.SyncFlyoutPanel.onPairDeviceLink();"
982 class="text-link">
983 <image src="chrome://browser/skin/images/plus-24.png" />
984 <separator />
985 <label>
986 &sync.flyout.connected.pair;
987 </label>
988 </hbox>
989 </vbox>
990
991 <vbox id="sync-pair-container"
992 collapsed="true">
993 <description>
994 &sync.flyout.pairNewDevice.description;
995 </description>
996 <separator />
997 <hbox>
998 <vbox>
999 <textbox id="sync-pair-entry1"
1000 class="syncJPAKECode"
1001 maxlength="4"
1002 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updatePairButtonState();" />
1003 <textbox id="sync-pair-entry2"
1004 class="syncJPAKECode"
1005 maxlength="4"
1006 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updatePairButtonState();" />
1007 <textbox id="sync-pair-entry3"
1008 class="syncJPAKECode"
1009 maxlength="4"
1010 oninput="FlyoutPanelsUI.SyncFlyoutPanel.updatePairButtonState();" />
1011 </vbox>
1012 <spacer flex="1" />
1013 </hbox>
1014 <description id="sync-pair-failure"
1015 class="syncErrorText"
1016 collapsed="true">
1017 &sync.flyout.pairNewDevice.failure;
1018 </description>
1019 <hbox>
1020 <button id="sync-pair-button"
1021 label="&sync.flyout.pairNewDevice.pair;"
1022 oncommand="FlyoutPanelsUI.SyncFlyoutPanel.onPairButton();"
1023 disabled="true" />
1024 <spacer flex="1" />
1025 </hbox>
1026 <description>
1027 &sync.flyout.pairNewDevice.note1;
1028 </description>
1029 <description>
1030 &sync.flyout.pairNewDevice.note2_2;
1031 </description>
1032 <description class="syncInstructionText">
1033 &sync.flyout.pairNewDevice.note3_2;
1034 </description>
1035 <description class="syncInstructionText">
1036 &sync.flyout.pairNewDevice.note4;
1037 </description>
1038 </vbox>
1039
1040 <vbox id="sync-pair-success-container"
1041 collapsed="true">
1042 <description>
1043 &sync.flyout.pairSuccess.description1;
1044 </description>
1045 <description>
1046 &sync.flyout.pairSuccess.description2;
1047 </description>
1048 </vbox>
1049
1050 </flyoutpanel>
1051 #endif
1052
1053 <flyoutpanel id="prefs-flyoutpanel"
1054 class="flyout-narrow"
1055 headertext="&optionsHeader.title;">
1056 <settings id="prefs-privdata"
1057 label="&clearPrivateData.title;">
1058 <description>
1059 &clearPrivateData.label;
1060 </description>
1061
1062 <checkbox id="prefs-privdata-history"
1063 itemName="history"
1064 label="&clearPrivateData.history;"
1065 checked="true" />
1066
1067 <checkbox id="prefs-privdata-other"
1068 label="&clearPrivateData.otherdata;"/>
1069 <hbox id="prefs-privdata-subitems" >
1070 <checkbox class="privdata-subitem-item"
1071 checked="true"
1072 itemName="downloads"
1073 label="&clearPrivateData.downloadHist;"/>
1074 <checkbox class="privdata-subitem-item"
1075 checked="true"
1076 itemName="formdata"
1077 label="&clearPrivateData.formSearchHist;"/>
1078 <checkbox class="privdata-subitem-item"
1079 checked="true"
1080 itemName="cookies"
1081 label="&clearPrivateData.cookies;"/>
1082 <checkbox class="privdata-subitem-item"
1083 checked="true"
1084 itemName="passwords"
1085 label="&clearPrivateData.passwords;"/>
1086 <checkbox class="privdata-subitem-item"
1087 checked="true"
1088 itemName="cache"
1089 label="&clearPrivateData.cache;"/>
1090 <checkbox class="privdata-subitem-item"
1091 checked="true"
1092 itemName="offlineApps"
1093 label="&clearPrivateData.offline;"/>
1094 <checkbox class="privdata-subitem-item"
1095 checked="true"
1096 itemName="siteSettings"
1097 label="&clearPrivateData.sitePref;"/>
1098 <checkbox class="privdata-subitem-item"
1099 checked="true"
1100 itemName="sessions"
1101 label="&clearPrivateData.logins;"/>
1102 </hbox>
1103
1104 <hbox align="center">
1105 <button id="prefs-clear-data"
1106 label="&clearPrivateData.button;"
1107 command="cmd_sanitize"
1108 flex="1" />
1109 <deck id="clear-notification"
1110 flex="2"
1111 selectedIndex="0"
1112 align="center">
1113 <spacer id="clear-notification-empty"/>
1114 <hbox id="clear-notification-clearing"
1115 align="center">
1116 <cssthrobber id="clearprivacythrobber"/>
1117 </hbox>
1118 <description id="clear-notification-done">
1119 &clearPrivateData.done;
1120 </description>
1121 </deck>
1122 </hbox>
1123 </settings>
1124 <setting pref="signon.rememberSignons"
1125 title="&optionsHeader.privacy.passwords.label;"
1126 type="bool"/>
1127 <setting pref="browser.display.overlaynavbuttons"
1128 title="&optionsHeader.displayOverlayButtons.label;"
1129 type="bool"/>
1130 <settings id="prefs-reporting"
1131 label="&optionsHeader.reporting.title;">
1132 <setting pref="app.crashreporter.autosubmit"
1133 type="bool"
1134 title="&optionsHeader.reporting.crashes.label;" />
1135 <checkbox id="prefs-reporting-submitURLs"
1136 cropped="end"
1137 label="&optionsHeader.reporting.crashes.submitURLs;"
1138 command="cmd_reportingCrashesSubmitURLs"/>
1139 </settings>
1140 <settings id="prefs-telemetry"
1141 label="&optionsHeader.telemetry.title;">
1142 <setting
1143 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT
1144 pref="toolkit.telemetry.enabledPreRelease"
1145 #else
1146 pref="toolkit.telemetry.enabled"
1147 #endif
1148 type="bool"
1149 title="&optionsHeader.telemetry.label;"/>
1150 </settings>
1151 <settings id="prefs-dnt"
1152 label="&doNotTrack.title;">
1153 <setting id="prefs-dnt-value"
1154 pref="privacy.donottrackheader.value"
1155 type="radio" >
1156 <radiogroup id="prefs-dnt-options">
1157 <radio id="prefs-dnt-notrack"
1158 class="flyoutpanel-hack"
1159 label="&doNotTrack.options.doNotTrack;"
1160 value="1"/>
1161 <radio id="prefs-dnt-oktrack"
1162 class="flyoutpanel-hack"
1163 label="&doNotTrack.options.doTrack;"
1164 value="0"/>
1165 <radio id="prefs-dnt-nopref"
1166 class="flyoutpanel-hack"
1167 label="&doNotTrack.options.default;"
1168 value="-1"/>
1169 </radiogroup>
1170 </setting>
1171 <label class="text-link"
1172 href="https://www.mozilla.org/dnt">
1173 &doNotTrack.learnMoreLink;
1174 </label>
1175 </settings>
1176 </flyoutpanel>
1177 <flyoutpanel id="search-flyoutpanel"
1178 class="flyout-narrow"
1179 headertext="&searchFlyoutHeader.title;">
1180 <settings id="search-options"
1181 label="&searchSetting.title;">
1182 </settings>
1183 </flyoutpanel>
1184
1185 <!-- Chrome touch selection overlay -->
1186 <box class="selection-overlay-hidden"
1187 id="chrome-selection-overlay"/>
1188
1189 <box onclick="event.stopPropagation();"
1190 id="context-container"
1191 class="menu-container"
1192 hidden="true">
1193 <vbox id="context-popup"
1194 class="menu-popup">
1195 <richlistbox id="context-commands"
1196 bindingType="contextmenu"
1197 flex="1">
1198 <!-- priority="low" items are hidden by default when a context is
1199 being displayed for two or more media types. (e.g.
1200 a linked image) -->
1201 <!-- content types preceeded by '!' act as exclusion rules, the menu
1202 item will not be displayed if the content type is present. -->
1203 <!-- Note the order of richlistitem here is important as it is
1204 reflected in the menu itself. -->
1205 <!-- ux spec:
1206 https://bug782810.bugzilla.mozilla.org/attachment.cgi?id=714804 -->
1207
1208 <!-- Text related -->
1209 <!-- for text inputs, this will cut selected text -->
1210 <richlistitem id="context-cut"
1211 type="cut"
1212 onclick="ContextCommands.cut();">
1213 <label value="&contextTextCut.label;"/>
1214 </richlistitem>
1215 <!-- for text inputs, this will copy selected text -->
1216 <richlistitem id="context-copy"
1217 type="copy"
1218 onclick="ContextCommands.copy();">
1219 <label value="&contextTextCopy.label;"/>
1220 </richlistitem>
1221 <!-- Search Bing for "(text..)", displayed on selected content text
1222 only -->
1223 <richlistitem id="context-search"
1224 type="selected-text,!input-text"
1225 onclick="ContextCommands.searchText(this);">
1226 <label id="context-search-label" value=""/>
1227 </richlistitem>
1228 <!-- only displayed in inputs with text that do not have selection -->
1229 <richlistitem id="context-select"
1230 type="selectable"
1231 onclick="ContextCommands.select();">
1232 <label value="&contextTextSelect.label;"/>
1233 </richlistitem>
1234 <!-- only displayed in inputs with text that do not have selection -->
1235 <richlistitem id="context-select-all"
1236 type="selectable"
1237 onclick="ContextCommands.selectAll();">
1238 <label value="&contextTextSelectAll.label;"/>
1239 </richlistitem>
1240 <!-- only displayed if there is text on the clipboard -->
1241 <richlistitem id="context-paste"
1242 type="paste"
1243 onclick="ContextCommands.paste();">
1244 <label value="&contextTextPaste.label;"/>
1245 </richlistitem>
1246 <!-- only display if there is text on the clipboard and the target
1247 is the urlbar -->
1248 <richlistitem id="context-paste-n-go"
1249 type="paste-url"
1250 onclick="ContextCommands.pasteAndGo();">
1251 <label value="&contextTextPasteAndGo.label;"/>
1252 </richlistitem>
1253
1254 <!-- Image related -->
1255 <!-- save image to user pictures library -->
1256 <richlistitem id="context-save-image-lib"
1257 type="image"
1258 onclick="ContextCommands.saveImageToLib();">
1259 <label value="&contextSaveImageLib.label;"/>
1260 </richlistitem>
1261 <!-- copy image data to clipboard -->
1262 <richlistitem id="context-copy-image"
1263 type="image"
1264 onclick="ContextCommands.copyImage();">
1265 <label value="&contextCopyImage.label;"/>
1266 </richlistitem>
1267 <!-- copy the uri of the image src -->
1268 <richlistitem id="context-copy-image-loc"
1269 type="image"
1270 onclick="ContextCommands.copyImageSrc();">
1271 <label value="&contextCopyImageLocation.label;"/>
1272 </richlistitem>
1273 <!-- open the uri of the image src in a new tab -->
1274 <richlistitem id="context-open-image-tab"
1275 type="image"
1276 priority="low"
1277 onclick="ContextCommands.openImageInNewTab();">
1278 <label value="&contextOpenImageTab.label;"/>
1279 </richlistitem>
1280
1281 <!-- Video related -->
1282 <!-- save video to user videos library -->
1283 <richlistitem id="context-save-video-lib"
1284 type="video"
1285 onclick="ContextCommands.saveVideoToLib();">
1286 <label value="&contextSaveVideoLib.label;"/>
1287 </richlistitem>
1288 <!-- copy the uri of the video src -->
1289 <richlistitem id="context-copy-video-loc"
1290 type="video"
1291 onclick="ContextCommands.copyVideoSrc();">
1292 <label value="&contextCopyVideoLocation.label;"/>
1293 </richlistitem>
1294 <!-- open the uri of the video src in a new tab -->
1295 <richlistitem id="context-open-video-tab"
1296 type="video"
1297 priority="low"
1298 onclick="ContextCommands.openVideoInNewTab();">
1299 <label value="&contextOpenVideoTab.label;"/>
1300 </richlistitem>
1301
1302 <!-- Link related -->
1303 <!-- all of these apply to underlying link href values -->
1304 <richlistitem id="context-open-in-new-tab"
1305 type="link"
1306 onclick="ContextCommands.openLinkInNewTab();">
1307 <label value="&contextOpenLinkTab.label;"/>
1308 </richlistitem>
1309 <richlistitem id="context-copy-link"
1310 type="link"
1311 onclick="ContextCommands.copyLink();">
1312 <label value="&contextCopyLinkHref.label;"/>
1313 </richlistitem>
1314 <richlistitem id="context-bookmark-link"
1315 type="link"
1316 priority="low"
1317 onclick="ContextCommands.bookmarkLink();">
1318 <label value="&contextBookmarkLinkHref.label;"/>
1319 </richlistitem>
1320
1321 <!-- App bar: 'more' button context menu -->
1322 <!-- developer buttons - shown in metrodesktop mode only -->
1323 <richlistitem id="context-error-console"
1324 type="open-error-console"
1325 onclick="ContextCommands.errorConsole();">
1326 <label value="&appbarErrorConsole.label;"/>
1327 </richlistitem>
1328 <richlistitem id="context-jsshell"
1329 type="open-jsshell"
1330 onclick="ContextCommands.jsShell();">
1331 <label value="&appbarJSShell.label;"/>
1332 </richlistitem>
1333
1334 <!-- standard buttons -->
1335 <richlistitem id="context-newprivatetab"
1336 type="private-browsing"
1337 onclick="BrowserUI.addAndShowPrivateTab()">
1338 <label value="&newPrivateTab.label;"/>
1339 </richlistitem>
1340 <richlistitem id="context-findinpage"
1341 type="find-in-page"
1342 onclick="ContextCommands.findInPage();">
1343 <label value="&appbarFindInPage2.label;"/>
1344 </richlistitem>
1345 <richlistitem id="context-viewondesktop"
1346 type="view-on-desktop"
1347 onclick="ContextCommands.viewOnDesktop();">
1348 <label value="&appbarRelaunchInDesktop.label;"/>
1349 </richlistitem>
1350 <richlistitem id="context-msmetadata"
1351 type="ms-meta-data"
1352 onclick="ContextCommands.openWindowsStoreLink();">
1353 <label value="&appbarMSMetaData2.label;"/>
1354 </richlistitem>
1355 <richlistitem id="context-viewpagesource"
1356 type="view-page-source"
1357 onclick="ContextCommands.viewPageSource();">
1358 <label value="&appbarViewPageSource.label;"/>
1359 </richlistitem>
1360 </richlistbox>
1361 </vbox>
1362 </box>
1363
1364 <vbox id="select-container"
1365 class="menu-container"
1366 hidden="true">
1367 <vbox id="select-popup"
1368 class="select-popup">
1369 <richlistbox id="select-commands"
1370 flex="1"/>
1371 </vbox>
1372 </vbox>
1373
1374 <box id="menucontrol-container"
1375 class="menu-container"
1376 hidden="true">
1377 <vbox id="menucontrol-popup"
1378 class="menu-popup">
1379 <richlistbox id="menupopup-commands"
1380 onclick="if (event.target != this) MenuControlUI.selectByIndex(this.selectedIndex);"
1381 flex="1"/>
1382 </vbox>
1383 </box>
1384
1385 <box id="autofill-container"
1386 class="menu-container"
1387 hidden="true">
1388 <vbox id="autofill-popup"
1389 class="menu-popup">
1390 <richlistbox id="menupopup-commands"
1391 onclick="if (event.target != this) AutofillMenuUI.selectByIndex(this.selectedIndex);"
1392 flex="1"/>
1393 </vbox>
1394 </box>
1395 </stack>
1396 </window>

mercurial