| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 (function(window) { | 5 (function(window) { |
| 6 | 6 |
| 7 // DevToolsAPI ---------------------------------------------------------------- | 7 // DevToolsAPI ---------------------------------------------------------------- |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @constructor | 10 * @constructor |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 setInspectedTabId: function(tabId) | 238 setInspectedTabId: function(tabId) |
| 239 { | 239 { |
| 240 // Support for legacy front-ends (<M41). | 240 // Support for legacy front-ends (<M41). |
| 241 if (window["WebInspector"].setInspectedTabId) | 241 if (window["WebInspector"].setInspectedTabId) |
| 242 window["WebInspector"].setInspectedTabId(tabId); | 242 window["WebInspector"].setInspectedTabId(tabId); |
| 243 else | 243 else |
| 244 this._dispatchOnInspectorFrontendAPI("setInspectedTabId", [tabId]); | 244 this._dispatchOnInspectorFrontendAPI("setInspectedTabId", [tabId]); |
| 245 }, | 245 }, |
| 246 | 246 |
| 247 /** | 247 /** |
| 248 * @param {string} backgroundColor | |
| 249 * @param {string} color | |
| 250 */ | |
| 251 setToolbarColors: function(backgroundColor, color) | |
| 252 { | |
| 253 this._dispatchOnInspectorFrontendAPI("setToolbarColors", [backgroundColo
r, color]); | |
| 254 }, | |
| 255 | |
| 256 /** | |
| 257 * @param {boolean} useSoftMenu | 248 * @param {boolean} useSoftMenu |
| 258 */ | 249 */ |
| 259 setUseSoftMenu: function(useSoftMenu) | 250 setUseSoftMenu: function(useSoftMenu) |
| 260 { | 251 { |
| 261 this._dispatchOnInspectorFrontendAPI("setUseSoftMenu", [useSoftMenu]); | 252 this._dispatchOnInspectorFrontendAPI("setUseSoftMenu", [useSoftMenu]); |
| 262 }, | 253 }, |
| 263 | 254 |
| 264 showConsole: function() | 255 showConsole: function() |
| 265 { | 256 { |
| 266 this._dispatchOnInspectorFrontendAPI("showConsole", []); | 257 this._dispatchOnInspectorFrontendAPI("showConsole", []); |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) | 843 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) |
| 853 { | 844 { |
| 854 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); | 845 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); |
| 855 uiTests._tryRun(); | 846 uiTests._tryRun(); |
| 856 }; | 847 }; |
| 857 | 848 |
| 858 window.uiTests = uiTests; | 849 window.uiTests = uiTests; |
| 859 } | 850 } |
| 860 | 851 |
| 861 })(window); | 852 })(window); |
| OLD | NEW |