title: Is it possible to enable device toolbar and set resolution using javascript in chrome developer console?
body: <p>I'm writing a chrome extension to test different page layouts of web-site. As a part of that I want to be able to enable device mode view in chrome developer tools and set desired device resolution.</p>
  
  <p>Is it possible to do this using javascript in extension or any other way?</p>
  
  <p>In particular, I want to do something like this:</p>
  
  <pre><code>chrome.devtools.enableDeviceMode();
  chrome.devtools.setDeviceModeResolution(768, 1024);
  </code></pre>