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

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

Issue 338113002: DevTools: Added user warning for chrome://inspect/#devices in Incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « chrome/browser/resources/inspect/inspect.html ('k') | chrome/browser/ui/webui/inspect_ui.h » ('j') | 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 var queryParamsObject = {}; 10 var queryParamsObject = {};
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 } 166 }
167 167
168 function populateWorkerTargets(data) { 168 function populateWorkerTargets(data) {
169 removeChildren('workers-list'); 169 removeChildren('workers-list');
170 170
171 for (var i = 0; i < data.length; i++) 171 for (var i = 0; i < data.length; i++)
172 addToWorkersList(data[i]); 172 addToWorkersList(data[i]);
173 } 173 }
174 174
175 function showIncognitoWarning() {
176 $('devices-incognito').hidden = false;
177 }
178
175 function populateRemoteTargets(devices) { 179 function populateRemoteTargets(devices) {
176 if (!devices) 180 if (!devices)
177 return; 181 return;
178 182
179 if (window.modal) { 183 if (window.modal) {
180 window.holdDevices = devices; 184 window.holdDevices = devices;
181 return; 185 return;
182 } 186 }
183 187
184 function alreadyDisplayed(element, data) { 188 function alreadyDisplayed(element, data) {
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 deviceSection.querySelector('.device-ports').textContent = ''; 930 deviceSection.querySelector('.device-ports').textContent = '';
927 } 931 }
928 932
929 Array.prototype.forEach.call( 933 Array.prototype.forEach.call(
930 document.querySelectorAll('.device'), clearPorts); 934 document.querySelectorAll('.device'), clearPorts);
931 } 935 }
932 936
933 document.addEventListener('DOMContentLoaded', onload); 937 document.addEventListener('DOMContentLoaded', onload);
934 938
935 window.addEventListener('hashchange', onHashChange); 939 window.addEventListener('hashchange', onHashChange);
OLDNEW
« no previous file with comments | « chrome/browser/resources/inspect/inspect.html ('k') | chrome/browser/ui/webui/inspect_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698