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