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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function sendLaunchedAndRunReply() {
6 chrome.test.sendMessage('Launched', function (reply) {
7 if (reply)
8 window[reply]();
9 });
10 }
11
12 function createHidden() {
13 chrome.app.window.create('empty.html', {
14 id: 'hidden_with_id',
15 hidden: true,
16 }, function () {
17 sendLaunchedAndRunReply();
18 });
19 }
20
21 function createVisible() {
22 chrome.app.window.create('empty.html', {
23 id: 'hidden_with_id',
24 }, function () {
25 sendLaunchedAndRunReply();
26 });
27 }
28
29 chrome.app.runtime.onLaunched.addListener(function() {
30 sendLaunchedAndRunReply();
31 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698