| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 /** | 5 /** |
| 6 * @fileoverview DevTools' implementation of the InspectorController API. | 6 * @fileoverview DevTools' implementation of the InspectorController API. |
| 7 */ | 7 */ |
| 8 goog.require('devtools.InspectorController'); | 8 goog.require('devtools.InspectorController'); |
| 9 | 9 |
| 10 goog.provide('devtools.InspectorControllerImpl'); | 10 goog.provide('devtools.InspectorControllerImpl'); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 | 104 |
| 105 /** | 105 /** |
| 106 * {@inheritDoc}. | 106 * {@inheritDoc}. |
| 107 */ | 107 */ |
| 108 devtools.InspectorControllerImpl.prototype.localizedStringsURL = | 108 devtools.InspectorControllerImpl.prototype.localizedStringsURL = |
| 109 function(opt_prefix) { | 109 function(opt_prefix) { |
| 110 // l10n is turned off in test mode because delayed loading of strings | 110 // l10n is turned off in test mode because delayed loading of strings |
| 111 // causes test failures. | 111 // causes test failures. |
| 112 if (!window.___interactiveUiTestsMode && !DevToolsHost.isStub) { | 112 if (false) { |
| 113 var locale = DevToolsHost.getApplicationLocale(); | 113 var locale = DevToolsHost.getApplicationLocale(); |
| 114 locale = locale.replace('_', '-'); | 114 locale = locale.replace('_', '-'); |
| 115 var prefix = opt_prefix || 'inspectorStrings'; | 115 return 'l10n/localizedStrings_' + locale + '.js'; |
| 116 return 'l10n/' + prefix + '_' + locale + '.js'; | |
| 117 } else { | 116 } else { |
| 118 return undefined; | 117 return undefined; |
| 119 } | 118 } |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 | 121 |
| 123 /** | 122 /** |
| 124 * {@inheritDoc}. | 123 * {@inheritDoc}. |
| 125 */ | 124 */ |
| 126 devtools.InspectorControllerImpl.prototype.addSourceToFrame = | 125 devtools.InspectorControllerImpl.prototype.addSourceToFrame = |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 320 |
| 322 devtools.InspectorControllerImpl.parseWrap_ = function(callback) { | 321 devtools.InspectorControllerImpl.parseWrap_ = function(callback) { |
| 323 return devtools.Callback.wrap( | 322 return devtools.Callback.wrap( |
| 324 function(data) { | 323 function(data) { |
| 325 callback.call(this, JSON.parse(data)); | 324 callback.call(this, JSON.parse(data)); |
| 326 }); | 325 }); |
| 327 }; | 326 }; |
| 328 | 327 |
| 329 | 328 |
| 330 InspectorController = new devtools.InspectorControllerImpl(); | 329 InspectorController = new devtools.InspectorControllerImpl(); |
| OLD | NEW |