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

Side by Side Diff: chrome/browser/resources/apps_debugger/background.js

Issue 15747009: Use window singleton API in the App Developer Tool and simplify the code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devtools-style-2
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var mainWindow = null; 5 var mainWindow = null;
6 chrome.app.runtime.onLaunched.addListener(function() { 6 chrome.app.runtime.onLaunched.addListener(function() {
7 if (mainWindow && !mainWindow.contentWindow.closed) { 7 chrome.app.window.create('main.html', {
8 mainWindow.focus(); 8 id: 'apps_debugger',
Gaurav 2013/05/23 17:15:27 Please rename this to apps_devtool.
9 } else { 9 minHeight: 600,
10 chrome.app.window.create('main.html', { 10 minWidth: 800,
11 id: 'apps_debugger', 11 height: 600,
12 minHeight: 600, 12 width: 800,
13 minWidth: 800, 13 });
14 height: 600,
15 width: 800,
16 }, function(win) {
17 mainWindow = win;
18 });
19 }
20 }); 14 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698