Bug 975111 - Add "Relaunch in Windows 8 Touch" button to the menu bar. r=mconley, a=lsblakk
authorMarina Samuel <msamuel@mozilla.com>
Thu, 27 Feb 2014 12:21:01 -0500
changeset 234597 669b486de0fdb556d670bd3e206a345621c0d7e4
parent 234596 078261348763bdaad106177879c2b7cfa0a125e0
child 234598 dc567976528cb43f786be96ff35cc2e22e714e19
push id208
push userryanvm@gmail.com
push dateMon, 23 Feb 2015 15:44:39 +0000
treeherdermozilla-b2g37_v2_2@09dafeb43234 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, lsblakk
bugs975111
milestone28.0
Bug 975111 - Add "Relaunch in Windows 8 Touch" button to the menu bar. r=mconley, a=lsblakk
browser/base/content/browser-menubar.inc
--- a/browser/base/content/browser-menubar.inc
+++ b/browser/base/content/browser-menubar.inc
@@ -33,16 +33,25 @@
                           command="Browser:OpenLocation"
                           key="focusURLBar"
                           accesskey="&openLocationCmd.accesskey;"/>
                 <menuitem id="menu_openFile"
                           label="&openFileCmd.label;"
                           command="Browser:OpenFile"
                           key="openFileKb"
                           accesskey="&openFileCmd.accesskey;"/>
+#ifdef HAVE_SHELL_SERVICE
+#ifdef XP_WIN
+#ifdef MOZ_METRO
+                <menuitem id="menu_switchToMetro"
+                          label="&switchToMetroCmd2.label;"
+                          oncommand="SwitchToMetro()"/>
+#endif
+#endif
+#endif
                 <menuitem id="menu_close"
                           class="show-only-for-keyboard"
                           label="&closeCmd.label;"
                           key="key_close"
                           accesskey="&closeCmd.accesskey;"
                           command="cmd_close"/>
                 <menuitem id="menu_closeWindow"
                           class="show-only-for-keyboard"