B2G/gecko/b2g/chrome/content/screen.js
// Print usage info for --screen and exit
Print usage info for --screen and exit
Print usage info for -- screen and exit
function usage() {
    let msg = 
      'The --screen argument specifies the desired resolution and\n' +
      'pixel density of the simulated device screen. Use it like this:\n' +
      '\t--screen=WIDTHxHEIGHT\t\t\t// E.g.: --screen=320x480\n' +
      '\t--screen=WIDTHxHEIGHT@DOTS_PER_INCH\t// E.g.: --screen=480x800@250\n' +
      '\t--screen=full\t\t\t\t// run in fullscreen mode\n' +
      '\nYou can also specify certain device names:\n';
    for(let p in screens)
      msg += '\t--screen=' + p + '\t// ' + screens[p].name + '\n';
    msg += 
      '\nAdd a ! to the end of a screen specification to rescale the\n' +
      'screen so that it is shown at actual size on your monitor:\n' +
      '\t--screen=nexus_s!\n' +
      '\t--screen=320x480@200!\n'
    ;
    print(msg);
    Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit);
  }
function usage ( ) { let msg = 'The --screen argument specifies the desired resolution and\n' + 'pixel density of the simulated device screen. Use it like this:\n' + '\t--screen=WIDTHxHEIGHT\t\t\t// E.g.: --screen=320x480\n' + '\t--screen=WIDTHxHEIGHT@DOTS_PER_INCH\t// E.g.: --screen=480x800@250\n' + '\t--screen=full\t\t\t\t// run in fullscreen mode\n' + '\nYou can also specify certain device names:\n' ; for ( let p in screens ) msg += '\t--screen=' + p + '\t// ' + screens [ p ] . name + '\n' ; msg += '\nAdd a ! to the end of a screen specification to rescale the\n' + 'screen so that it is shown at actual size on your monitor:\n' + '\t--screen=nexus_s!\n' + '\t--screen=320x480@200!\n' ; print ( msg ) ; Services . startup . quit ( Ci . nsIAppStartup . eAttemptQuit ) ; }
Print usage info for --screen and exit
Print usage info for -- screen and exit
// Documentation for the --screen argument // Display the usage message // Exit the b2g client