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

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: works 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 {boolean} discoverUsbDevices
379 * @param {boolean} portForwardingEnabled 379 * @param {boolean} portForwardingEnabled
380 * @param {!Adb.PortForwardingConfig} portForwardingConfig 380 * @param {!Adb.PortForwardingConfig} portForwardingConfig
381 * @param {boolean} networkDiscoveryEnabled
382 * @param {!Adb.NetworkDiscoveryConfig} networkDiscoveryConfig
381 */ 383 */
382 setDevicesDiscoveryConfig(discoverUsbDevices, portForwardingEnabled, portForwa rdingConfig) { 384 setDevicesDiscoveryConfig(
385 discoverUsbDevices, portForwardingEnabled, portForwardingConfig, networkDi scoveryEnabled,
386 networkDiscoveryConfig) {
383 } 387 }
384 388
385 /** 389 /**
386 * @override 390 * @override
387 * @param {boolean} enabled 391 * @param {boolean} enabled
388 */ 392 */
389 setDevicesUpdatesEnabled(enabled) { 393 setDevicesUpdatesEnabled(enabled) {
390 } 394 }
391 395
392 /** 396 /**
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 * @return {boolean} 545 * @return {boolean}
542 */ 546 */
543 Host.isUnderTest = function(prefs) { 547 Host.isUnderTest = function(prefs) {
544 if (InspectorFrontendHost.isUnderTest()) 548 if (InspectorFrontendHost.isUnderTest())
545 return true; 549 return true;
546 550
547 if (prefs) 551 if (prefs)
548 return prefs['isUnderTest'] === 'true'; 552 return prefs['isUnderTest'] === 'true';
549 return Common.settings.createSetting('isUnderTest', false).get(); 553 return Common.settings.createSetting('isUnderTest', false).get();
550 }; 554 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698