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

Side by Side Diff: chrome/browser/resources/net_internals/capture_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 controls for capturing network events. 6 * This view displays controls for capturing network events.
7 */ 7 */
8 var CaptureView = (function() {
9 'use strict';
8 10
9 var CaptureView = (function() {
10 // IDs for special HTML elements in capture_view.html 11 // IDs for special HTML elements in capture_view.html
11 const MAIN_BOX_ID = 'capture-view-tab-content'; 12 var MAIN_BOX_ID = 'capture-view-tab-content';
12 const BYTE_LOGGING_CHECKBOX_ID = 'capture-view-byte-logging-checkbox'; 13 var BYTE_LOGGING_CHECKBOX_ID = 'capture-view-byte-logging-checkbox';
13 const PASSIVELY_CAPTURED_COUNT_ID = 'capture-view-passively-captured-count'; 14 var PASSIVELY_CAPTURED_COUNT_ID = 'capture-view-passively-captured-count';
14 const ACTIVELY_CAPTURED_COUNT_ID = 'capture-view-actively-captured-count'; 15 var ACTIVELY_CAPTURED_COUNT_ID = 'capture-view-actively-captured-count';
15 const DELETE_ALL_ID = 'capture-view-delete-all'; 16 var DELETE_ALL_ID = 'capture-view-delete-all';
16 const TIP_ANCHOR_ID = 'capture-view-tip-anchor'; 17 var TIP_ANCHOR_ID = 'capture-view-tip-anchor';
17 const TIP_DIV_ID = 'capture-view-tip-div'; 18 var TIP_DIV_ID = 'capture-view-tip-div';
18 19
19 // We inherit from DivView. 20 // We inherit from DivView.
20 var superClass = DivView; 21 var superClass = DivView;
21 22
22 /** 23 /**
23 * @constructor 24 * @constructor
24 */ 25 */
25 function CaptureView() { 26 function CaptureView() {
27 assertFirstConstructorCall(CaptureView);
28
26 // Call superclass's constructor. 29 // Call superclass's constructor.
27 superClass.call(this, MAIN_BOX_ID); 30 superClass.call(this, MAIN_BOX_ID);
28 31
29 var byteLoggingCheckbox = $(BYTE_LOGGING_CHECKBOX_ID); 32 var byteLoggingCheckbox = $(BYTE_LOGGING_CHECKBOX_ID);
30 byteLoggingCheckbox.onclick = 33 byteLoggingCheckbox.onclick =
31 this.onSetByteLogging_.bind(this, byteLoggingCheckbox); 34 this.onSetByteLogging_.bind(this, byteLoggingCheckbox);
32 35
33 this.activelyCapturedCountBox_ = $(ACTIVELY_CAPTURED_COUNT_ID); 36 this.activelyCapturedCountBox_ = $(ACTIVELY_CAPTURED_COUNT_ID);
34 this.passivelyCapturedCountBox_ = $(PASSIVELY_CAPTURED_COUNT_ID); 37 this.passivelyCapturedCountBox_ = $(PASSIVELY_CAPTURED_COUNT_ID);
35 $(DELETE_ALL_ID).onclick = 38 $(DELETE_ALL_ID).onclick =
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 if (byteLoggingCheckbox.checked) { 112 if (byteLoggingCheckbox.checked) {
110 g_browser.setLogLevel(LogLevelType.LOG_ALL); 113 g_browser.setLogLevel(LogLevelType.LOG_ALL);
111 } else { 114 } else {
112 g_browser.setLogLevel(LogLevelType.LOG_ALL_BUT_BYTES); 115 g_browser.setLogLevel(LogLevelType.LOG_ALL_BUT_BYTES);
113 } 116 }
114 } 117 }
115 }; 118 };
116 119
117 return CaptureView; 120 return CaptureView;
118 })(); 121 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/browser_bridge.js ('k') | chrome/browser/resources/net_internals/dns_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698