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

Side by Side Diff: webkit/glue/devtools/js/inspector_controller_impl.js

Issue 173570: DevTools l10n: inhibit until agreeded that it is needed. (Closed)
Patch Set: Created 11 years, 3 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 | « webkit/glue/devtools/js/devtools.js ('k') | webkit/webkit.gyp » ('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) 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
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
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();
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698