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

Side by Side Diff: chrome/browser/resources/net_internals/import_view.js

Issue 7564029: Use javascript strict mode throughout a number of net-internals files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix one more var Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 * This view displays options for importing data from a log file. 6 * This view displays options for importing data from a log file.
7 */ 7 */
8 var ImportView = (function() {
9 'use strict';
8 10
9 var ImportView = (function() {
10 // IDs for special HTML elements in import_view.html 11 // IDs for special HTML elements in import_view.html
11 const MAIN_BOX_ID = 'import-view-tab-content'; 12 var MAIN_BOX_ID = 'import-view-tab-content';
12 const LOADED_DIV_ID = 'import-view-loaded-div'; 13 var LOADED_DIV_ID = 'import-view-loaded-div';
13 const LOAD_LOG_FILE_ID = 'import-view-load-log-file'; 14 var LOAD_LOG_FILE_ID = 'import-view-load-log-file';
14 const LOAD_STATUS_TEXT_ID = 'import-view-load-status-text'; 15 var LOAD_STATUS_TEXT_ID = 'import-view-load-status-text';
15 const RELOAD_LINK_ID = 'import-view-reloaded-link'; 16 var RELOAD_LINK_ID = 'import-view-reloaded-link';
16 const LOADED_INFO_EXPORT_DATE_ID = 'import-view-export-date'; 17 var LOADED_INFO_EXPORT_DATE_ID = 'import-view-export-date';
17 const LOADED_INFO_BUILD_NAME_ID = 'import-view-build-name'; 18 var LOADED_INFO_BUILD_NAME_ID = 'import-view-build-name';
18 const LOADED_INFO_OS_TYPE_ID = 'import-view-os-type'; 19 var LOADED_INFO_OS_TYPE_ID = 'import-view-os-type';
19 const LOADED_INFO_COMMAND_LINE_ID = 'import-view-command-line'; 20 var LOADED_INFO_COMMAND_LINE_ID = 'import-view-command-line';
20 const LOADED_INFO_USER_COMMENTS_ID = 'import-view-user-comments'; 21 var LOADED_INFO_USER_COMMENTS_ID = 'import-view-user-comments';
21 22
22 // This is defined in index.html, but for all intents and purposes is part 23 // This is defined in index.html, but for all intents and purposes is part
23 // of this view. 24 // of this view.
24 const LOAD_LOG_FILE_DROP_TARGET_ID = 'import-view-drop-target'; 25 var LOAD_LOG_FILE_DROP_TARGET_ID = 'import-view-drop-target';
25 26
26 // We inherit from DivView. 27 // We inherit from DivView.
27 var superClass = DivView; 28 var superClass = DivView;
28 29
29 /** 30 /**
30 * @constructor 31 * @constructor
31 */ 32 */
32 function ImportView() { 33 function ImportView() {
34 assertFirstConstructorCall(ImportView);
35
33 // Call superclass's constructor. 36 // Call superclass's constructor.
34 superClass.call(this, MAIN_BOX_ID); 37 superClass.call(this, MAIN_BOX_ID);
35 38
36 this.loadedDiv_ = $(LOADED_DIV_ID); 39 this.loadedDiv_ = $(LOADED_DIV_ID);
37 40
38 this.loadFileElement_ = $(LOAD_LOG_FILE_ID); 41 this.loadFileElement_ = $(LOAD_LOG_FILE_ID);
39 this.loadFileElement_.onchange = this.logFileChanged.bind(this); 42 this.loadFileElement_.onchange = this.logFileChanged.bind(this);
40 this.loadStatusText_ = $(LOAD_STATUS_TEXT_ID); 43 this.loadStatusText_ = $(LOAD_STATUS_TEXT_ID);
41 44
42 var dropTarget = $(LOAD_LOG_FILE_DROP_TARGET_ID); 45 var dropTarget = $(LOAD_LOG_FILE_DROP_TARGET_ID);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 this.loadedInfoOsType_.innerText = ClientInfo.os_type; 209 this.loadedInfoOsType_.innerText = ClientInfo.os_type;
207 this.loadedInfoCommandLine_.innerText = ClientInfo.command_line; 210 this.loadedInfoCommandLine_.innerText = ClientInfo.command_line;
208 211
209 // User comments will not be available when dumped from command line. 212 // User comments will not be available when dumped from command line.
210 this.loadedInfoUserComments_.innerText = userComments || ''; 213 this.loadedInfoUserComments_.innerText = userComments || '';
211 } 214 }
212 }; 215 };
213 216
214 return ImportView; 217 return ImportView;
215 })(); 218 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/http_throttling_view.js ('k') | chrome/browser/resources/net_internals/logs_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698