Bug 564138 - Shift+Ctrl+o lock the screen _AND_ resize the window [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Thu, 06 May 2010 09:21:26 -0400
changeset 66209 6768d5faaebc77470e2d699434a351cb867ce5f4
parent 66208 15de80205affc22547d7a6590e46ab58b6ed8007
child 66210 fb0b212cb7bfd56f12252d0b1ea441d33d82826b
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs564138
Bug 564138 - Shift+Ctrl+o lock the screen _AND_ resize the window [r=mfinkle]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -177,19 +177,19 @@ function onDebugKeyPress(ev) {
   const g = 71;
   const h = 72;
   const i = 73;  // toggle info click mode
   const j = 74;
   const k = 75;
   const l = 76;  // restart lazy crawl
   const m = 77;  // fix mouseout
   const n = 78;
-  const o = 79;  // toggle orientation
+  const o = 79;
   const p = 80;  // debug tiles in pool order
-  const q = 81;
+  const q = 81;  // toggle orientation
   const r = 82;  // reset visible rect
   const s = 83;
   const t = 84;  // debug given list of tiles separated by space
   const u = 85;
   const v = 86;
   const w = 87;
   const x = 88;
   const y = 89;
@@ -296,33 +296,35 @@ function onDebugKeyPress(ev) {
   case i:
     window.infoMode = !window.infoMode;
     break;
   case m:
     Util.dumpLn("renderMode:", bv._renderMode);
     Util.dumpLn("batchOps:",bv._batchOps.length);
     bv.resumeRendering();
     break;
-  case o:
-    if (Util.isPortrait())
-      window.top.resizeTo(800,480);
-    else
-      window.top.resizeTo(480,800);
-    break;
   case p:
     let tc = bv._tileManager._tileCache;
     dump('************* TILE POOL ****************\n');
     for (let ii = 0, len = tc._tilePool.length; ii < len; ++ii) {
       if (window.infoMode)
         debugTile(tc._tilePool[ii].i, tc._tilePool[ii].j);
       else
         dump(tc._tilePool[ii].i + ',' + tc._tilePool[ii].j + '\n');
     }
     dump('****************************************\n');
     break;
+#ifndef MOZ_PLATFORM_MAEMO
+  case q:
+    if (Util.isPortrait())
+      window.top.resizeTo(800,480);
+    else
+      window.top.resizeTo(480,800);
+    break;
+#endif
   case z:
     bv.setZoomLevel(1.0);
     break;
   default:
     break;
   }
 }
 window.infoMode = false;