Index: chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/main.js |
diff --git a/chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/main.js b/chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/main.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0b4074a0c39dce5578c3e2efd795d7dfcadaa683 |
--- /dev/null |
+++ b/chrome/test/data/extensions/platform_apps/ad_view/display_first_ad/main.js |
@@ -0,0 +1,14 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+/** |
+ * Listens for the app launching then creates the window |
+ * |
+ * @see http://developer.chrome.com/trunk/apps/app.runtime.html |
+ * @see http://developer.chrome.com/trunk/apps/app.window.html |
+ */ |
+chrome.app.runtime.onLaunched.addListener(function() { |
+ chrome.app.window.create('index.html', |
+ {top:0, left: 0, width: 900, height: 800}); |
+}); |