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

Side by Side Diff: chrome/browser/resources/net_internals/export_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 exporting the captured data. 6 * This view displays options for exporting the captured data.
7 * @constructor
8 */ 7 */
9 var ExportView = (function() { 8 var ExportView = (function() {
9 'use strict';
10
10 // IDs for special HTML elements in export_view.html 11 // IDs for special HTML elements in export_view.html
11 const MAIN_BOX_ID = 'export-view-tab-content'; 12 var MAIN_BOX_ID = 'export-view-tab-content';
12 const DOWNLOAD_IFRAME_ID = 'export-view-download-iframe'; 13 var DOWNLOAD_IFRAME_ID = 'export-view-download-iframe';
13 const SAVE_FILE_BUTTON_ID = 'export-view-save-log-file'; 14 var SAVE_FILE_BUTTON_ID = 'export-view-save-log-file';
14 const SAVE_STATUS_TEXT_ID = 'export-view-save-status-text'; 15 var SAVE_STATUS_TEXT_ID = 'export-view-save-status-text';
15 const SECURITY_STRIPPING_CHECKBOX_ID = 16 var SECURITY_STRIPPING_CHECKBOX_ID =
16 'export-view-security-stripping-checkbox'; 17 'export-view-security-stripping-checkbox';
17 const USER_COMMENTS_TEXT_AREA_ID = 'export-view-user-comments'; 18 var USER_COMMENTS_TEXT_AREA_ID = 'export-view-user-comments';
18 19
19 // We inherit from DivView. 20 // We inherit from DivView.
20 var superClass = DivView; 21 var superClass = DivView;
21 22
23 /**
24 * @constructor
25 */
22 function ExportView() { 26 function ExportView() {
27 assertFirstConstructorCall(ExportView);
28
23 // Call superclass's constructor. 29 // Call superclass's constructor.
24 superClass.call(this, MAIN_BOX_ID); 30 superClass.call(this, MAIN_BOX_ID);
25 31
26 var securityStrippingCheckbox = $(SECURITY_STRIPPING_CHECKBOX_ID); 32 var securityStrippingCheckbox = $(SECURITY_STRIPPING_CHECKBOX_ID);
27 securityStrippingCheckbox.onclick = 33 securityStrippingCheckbox.onclick =
28 this.onSetSecurityStripping_.bind(this, securityStrippingCheckbox); 34 this.onSetSecurityStripping_.bind(this, securityStrippingCheckbox);
29 35
30 this.downloadIframe_ = $(DOWNLOAD_IFRAME_ID); 36 this.downloadIframe_ = $(DOWNLOAD_IFRAME_ID);
31 37
32 this.saveFileButton_ = $(SAVE_FILE_BUTTON_ID); 38 this.saveFileButton_ = $(SAVE_FILE_BUTTON_ID);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 blobBuilder.append(dumpText, 'native'); 144 blobBuilder.append(dumpText, 'native');
139 var textBlob = blobBuilder.getBlob('octet/stream'); 145 var textBlob = blobBuilder.getBlob('octet/stream');
140 this.lastBlobURL_ = window.webkitURL.createObjectURL(textBlob); 146 this.lastBlobURL_ = window.webkitURL.createObjectURL(textBlob);
141 this.downloadIframe_.src = this.lastBlobURL_; 147 this.downloadIframe_.src = this.lastBlobURL_;
142 this.setSaveFileStatus('Dump successful', false); 148 this.setSaveFileStatus('Dump successful', false);
143 } 149 }
144 }; 150 };
145 151
146 return ExportView; 152 return ExportView;
147 })(); 153 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/events_view.js ('k') | chrome/browser/resources/net_internals/hsts_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698