Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: chrome/test/data/extensions/platform_apps/hidden_with_id/test.js

Issue 958923004: Fix hiding behavior when creating app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove changes to platform_apps/hidden/test.js Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/platform_apps/hidden_with_id/test.js
diff --git a/chrome/test/data/extensions/platform_apps/hidden_with_id/test.js b/chrome/test/data/extensions/platform_apps/hidden_with_id/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..91ccea0131be7d295b5d29ce609aee60cf130b07
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/hidden_with_id/test.js
@@ -0,0 +1,31 @@
+// Copyright 2015 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.
+
+function sendLaunchedAndRunReply() {
+ chrome.test.sendMessage('Launched', function (reply) {
+ if (reply)
+ window[reply]();
+ });
+}
+
+function createHidden() {
+ chrome.app.window.create('empty.html', {
+ id: 'hidden_with_id',
+ hidden: true,
+ }, function () {
+ sendLaunchedAndRunReply();
+ });
+}
+
+function createVisible() {
+ chrome.app.window.create('empty.html', {
+ id: 'hidden_with_id',
+ }, function () {
+ sendLaunchedAndRunReply();
+ });
+}
+
+chrome.app.runtime.onLaunched.addListener(function() {
+ sendLaunchedAndRunReply();
+});

Powered by Google App Engine
This is Rietveld 408576698