chromium/chrome/test/data/extensions/platform_apps/web_view/popup_positioning/test.js

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('main.html', {
    innerBounds: {
      width: 400,
      height: 400
    },
    outerBounds: {
      // Prefer close to top left on screen so we have enough space for
      // rendering popup.
      left: 20,
      top: 20
    }
  }, function (win) {});
});