Bug 1164537 - Restore tilt for non-e10s windows. r=jwalker, a=sledru
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 14 May 2015 07:35:00 -0400
changeset 274960 d8184ba2ed3a3c6fac95741d6ff84c75ac2c4aeb
parent 274959 7acf10f0019867f75fed11728e266f5fefd38bed
child 274961 34cc0e31bdb696a8636e57ada04e7fa319c481d9
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalker, sledru
bugs1164537
milestone40.0a2
Bug 1164537 - Restore tilt for non-e10s windows. r=jwalker, a=sledru
browser/devtools/tilt/tilt-commands.js
--- a/browser/devtools/tilt/tilt-commands.js
+++ b/browser/devtools/tilt/tilt-commands.js
@@ -13,23 +13,24 @@ Object.defineProperty(this, "TiltManager
   get: function() {
     return require("devtools/tilt/tilt").TiltManager;
   },
   enumerable: true
 });
 
 exports.items = [
 {
-  name: 'tilt',
+  name: "tilt",
   description: l10n.lookup("tiltDesc"),
   manual: l10n.lookup("tiltManual"),
   hidden: true
 },
 {
-  name: 'tilt open',
+  name: "tilt open",
+  runAt: "client",
   description: l10n.lookup("tiltOpenDesc"),
   manual: l10n.lookup("tiltOpenManual"),
   hidden: true,
   exec: function(args, context) {
     if (isMultiProcess(context)) {
       return l10n.lookupFormat("notAvailableInE10S", [this.name]);
     }
 
@@ -37,16 +38,17 @@ exports.items = [
     let Tilt = TiltManager.getTiltForBrowser(chromeWindow);
     if (!Tilt.currentInstance) {
       Tilt.toggle();
     }
   }
 },
 {
   name: "tilt toggle",
+  runAt: "client",
   buttonId: "command-button-tilt",
   buttonClass: "command-button command-button-invertable",
   tooltipText: l10n.lookup("tiltToggleTooltip"),
   hidden: true,
   state: {
     isChecked: function(aTarget) {
       if (!aTarget.tab) {
         return false;
@@ -77,17 +79,18 @@ exports.items = [
     }
 
     let chromeWindow = context.environment.chromeDocument.defaultView;
     let Tilt = TiltManager.getTiltForBrowser(chromeWindow);
     Tilt.toggle();
   }
 },
 {
-  name: 'tilt translate',
+  name: "tilt translate",
+  runAt: "client",
   description: l10n.lookup("tiltTranslateDesc"),
   manual: l10n.lookup("tiltTranslateManual"),
   hidden: true,
   params: [
     {
       name: "x",
       type: "number",
       defaultValue: 0,
@@ -110,17 +113,18 @@ exports.items = [
     let chromeWindow = context.environment.chromeDocument.defaultView;
     let Tilt = TiltManager.getTiltForBrowser(chromeWindow);
     if (Tilt.currentInstance) {
       Tilt.currentInstance.controller.arcball.translate([args.x, args.y]);
     }
   }
 },
 {
-  name: 'tilt rotate',
+  name: "tilt rotate",
+  runAt: "client",
   description: l10n.lookup("tiltRotateDesc"),
   manual: l10n.lookup("tiltRotateManual"),
   hidden: true,
   params: [
     {
       name: "x",
       type: { name: 'number', min: -360, max: 360, step: 10 },
       defaultValue: 0,
@@ -150,17 +154,18 @@ exports.items = [
     let chromeWindow = context.environment.chromeDocument.defaultView;
     let Tilt = TiltManager.getTiltForBrowser(chromeWindow);
     if (Tilt.currentInstance) {
       Tilt.currentInstance.controller.arcball.rotate([args.x, args.y, args.z]);
     }
   }
 },
 {
-  name: 'tilt zoom',
+  name: "tilt zoom",
+  runAt: "client",
   description: l10n.lookup("tiltZoomDesc"),
   manual: l10n.lookup("tiltZoomManual"),
   hidden: true,
   params: [
     {
       name: "zoom",
       type: { name: 'number' },
       description: l10n.lookup("tiltZoomAmountDesc"),
@@ -176,17 +181,18 @@ exports.items = [
     let Tilt = TiltManager.getTiltForBrowser(chromeWindow);
 
     if (Tilt.currentInstance) {
       Tilt.currentInstance.controller.arcball.zoom(-args.zoom);
     }
   }
 },
 {
-  name: 'tilt reset',
+  name: "tilt reset",
+  runAt: "client",
   description: l10n.lookup("tiltResetDesc"),
   manual: l10n.lookup("tiltResetManual"),
   hidden: true,
   exec: function(args, context) {
     if (isMultiProcess(context)) {
       return l10n.lookupFormat("notAvailableInE10S", [this.name]);
     }
 
@@ -194,17 +200,18 @@ exports.items = [
     let Tilt = TiltManager.getTiltForBrowser(chromeWindow);
 
     if (Tilt.currentInstance) {
       Tilt.currentInstance.controller.arcball.reset();
     }
   }
 },
 {
-  name: 'tilt close',
+  name: "tilt close",
+  runAt: "client",
   description: l10n.lookup("tiltCloseDesc"),
   manual: l10n.lookup("tiltCloseManual"),
   hidden: true,
   exec: function(args, context) {
     if (isMultiProcess(context)) {
       return l10n.lookupFormat("notAvailableInE10S", [this.name]);
     }