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

Side by Side Diff: chrome/browser/resources/inspect/inspect.js

Issue 125593006: <webview>: guest pages embedded in WebUI should appear in chrome://inspect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 MIN_VERSION_TAB_CLOSE = 25; 5 var MIN_VERSION_TAB_CLOSE = 25;
6 var MIN_VERSION_TARGET_ID = 26; 6 var MIN_VERSION_TARGET_ID = 26;
7 var MIN_VERSION_NEW_TAB = 29; 7 var MIN_VERSION_NEW_TAB = 29;
8 var MIN_VERSION_TAB_ACTIVATE = 30; 8 var MIN_VERSION_TAB_ACTIVATE = 30;
9 9
10 function sendCommand(command, args) { 10 function sendCommand(command, args) {
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 sendTargetCommand.bind(null, 'close', page), page.attached); 315 sendTargetCommand.bind(null, 'close', page), page.attached);
316 } 316 }
317 } 317 }
318 } 318 }
319 } 319 }
320 } 320 }
321 321
322 function addToPagesList(data) { 322 function addToPagesList(data) {
323 var row = addTargetToList(data, $('pages-list'), ['name', 'url']); 323 var row = addTargetToList(data, $('pages-list'), ['name', 'url']);
324 addFavicon(row, data); 324 addFavicon(row, data);
325 if (data.guests)
326 addGuestViews(row, data.guests);
325 } 327 }
326 328
327 function addToExtensionsList(data) { 329 function addToExtensionsList(data) {
328 var row = addTargetToList(data, $('extensions-list'), ['name', 'url']); 330 var row = addTargetToList(data, $('extensions-list'), ['name', 'url']);
329 addFavicon(row, data); 331 addFavicon(row, data);
330 if (data.guests) 332 if (data.guests)
331 addGuestViews(row, data.guests); 333 addGuestViews(row, data.guests);
332 } 334 }
333 335
334 function addToAppsList(data) { 336 function addToAppsList(data) {
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 line.classList.remove('fresh'); 803 line.classList.remove('fresh');
802 var freshLine = createEmptyConfigLine(); 804 var freshLine = createEmptyConfigLine();
803 line.parentNode.appendChild(freshLine); 805 line.parentNode.appendChild(freshLine);
804 if (opt_selectNew) 806 if (opt_selectNew)
805 freshLine.querySelector('.port').focus(); 807 freshLine.querySelector('.port').focus();
806 } 808 }
807 809
808 document.addEventListener('DOMContentLoaded', onload); 810 document.addEventListener('DOMContentLoaded', onload);
809 811
810 window.addEventListener('hashchange', onHashChange); 812 window.addEventListener('hashchange', onHashChange);
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