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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 2864263002: [DevTools] Expose TCP targets config in frontend, use it for Node (Closed)
Patch Set: panel Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 } 368 }
369 369
370 /** 370 /**
371 * @override 371 * @override
372 */ 372 */
373 readyForTest() { 373 readyForTest() {
374 } 374 }
375 375
376 /** 376 /**
377 * @override 377 * @override
378 * @param {boolean} discoverUsbDevices 378 * @param {!Adb.Config} config
379 * @param {boolean} portForwardingEnabled
380 * @param {!Adb.PortForwardingConfig} portForwardingConfig
381 */ 379 */
382 setDevicesDiscoveryConfig(discoverUsbDevices, portForwardingEnabled, portForwa rdingConfig) { 380 setDevicesDiscoveryConfig(config) {
383 } 381 }
384 382
385 /** 383 /**
386 * @override 384 * @override
387 * @param {boolean} enabled 385 * @param {boolean} enabled
388 */ 386 */
389 setDevicesUpdatesEnabled(enabled) { 387 setDevicesUpdatesEnabled(enabled) {
390 } 388 }
391 389
392 /** 390 /**
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 * @return {boolean} 539 * @return {boolean}
542 */ 540 */
543 Host.isUnderTest = function(prefs) { 541 Host.isUnderTest = function(prefs) {
544 if (InspectorFrontendHost.isUnderTest()) 542 if (InspectorFrontendHost.isUnderTest())
545 return true; 543 return true;
546 544
547 if (prefs) 545 if (prefs)
548 return prefs['isUnderTest'] === 'true'; 546 return prefs['isUnderTest'] === 'true';
549 return Common.settings.createSetting('isUnderTest', false).get(); 547 return Common.settings.createSetting('isUnderTest', false).get();
550 }; 548 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698