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

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

Issue 8474001: Add a timeline view to about:net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Comment fix Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/category_tabs.html » ('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) 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() { 8 var CaptureView = (function() {
9 'use strict'; 9 'use strict';
10 10
(...skipping 18 matching lines...) Expand all
29 $(CaptureView.PASSIVELY_CAPTURED_COUNT_ID); 29 $(CaptureView.PASSIVELY_CAPTURED_COUNT_ID);
30 $(CaptureView.DELETE_ALL_ID).onclick = 30 $(CaptureView.DELETE_ALL_ID).onclick =
31 g_browser.sourceTracker.deleteAllSourceEntries.bind( 31 g_browser.sourceTracker.deleteAllSourceEntries.bind(
32 g_browser.sourceTracker); 32 g_browser.sourceTracker);
33 33
34 $(CaptureView.TIP_ANCHOR_ID).onclick = 34 $(CaptureView.TIP_ANCHOR_ID).onclick =
35 this.toggleCommandLineTip_.bind(this, CaptureView.TIP_DIV_ID); 35 this.toggleCommandLineTip_.bind(this, CaptureView.TIP_DIV_ID);
36 36
37 this.updateEventCounts_(); 37 this.updateEventCounts_();
38 38
39 g_browser.sourceTracker.addObserver(this); 39 g_browser.sourceTracker.addSourceEntryObserver(this);
40 } 40 }
41 41
42 // ID for special HTML element in category_tabs.html 42 // ID for special HTML element in category_tabs.html
43 CaptureView.TAB_HANDLE_ID = 'tab-handle-capture'; 43 CaptureView.TAB_HANDLE_ID = 'tab-handle-capture';
44 44
45 // IDs for special HTML elements in capture_view.html 45 // IDs for special HTML elements in capture_view.html
46 CaptureView.MAIN_BOX_ID = 'capture-view-tab-content'; 46 CaptureView.MAIN_BOX_ID = 'capture-view-tab-content';
47 CaptureView.BYTE_LOGGING_CHECKBOX_ID = 'capture-view-byte-logging-checkbox'; 47 CaptureView.BYTE_LOGGING_CHECKBOX_ID = 'capture-view-byte-logging-checkbox';
48 CaptureView.PASSIVELY_CAPTURED_COUNT_ID = 48 CaptureView.PASSIVELY_CAPTURED_COUNT_ID =
49 'capture-view-passively-captured-count'; 49 'capture-view-passively-captured-count';
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 if (byteLoggingCheckbox.checked) { 118 if (byteLoggingCheckbox.checked) {
119 g_browser.setLogLevel(LogLevelType.LOG_ALL); 119 g_browser.setLogLevel(LogLevelType.LOG_ALL);
120 } else { 120 } else {
121 g_browser.setLogLevel(LogLevelType.LOG_ALL_BUT_BYTES); 121 g_browser.setLogLevel(LogLevelType.LOG_ALL_BUT_BYTES);
122 } 122 }
123 } 123 }
124 }; 124 };
125 125
126 return CaptureView; 126 return CaptureView;
127 })(); 127 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/category_tabs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698