| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 19 matching lines...) Expand all Loading... |
| 30 $(CaptureView.RESET_BUTTON_ID).onclick = | 30 $(CaptureView.RESET_BUTTON_ID).onclick = |
| 31 this.onResetButtonClicked_.bind(this); | 31 this.onResetButtonClicked_.bind(this); |
| 32 | 32 |
| 33 if (byteLoggingCheckbox.checked) { | 33 if (byteLoggingCheckbox.checked) { |
| 34 // The code to display a warning on ExportView relies on bytelogging | 34 // The code to display a warning on ExportView relies on bytelogging |
| 35 // being off by default. If this ever changes, the code will need to | 35 // being off by default. If this ever changes, the code will need to |
| 36 // be updated. | 36 // be updated. |
| 37 throw 'Not expecting byte logging to be enabled!'; | 37 throw 'Not expecting byte logging to be enabled!'; |
| 38 } | 38 } |
| 39 | 39 |
| 40 new MouseOverHelp(CaptureView.LIMIT_HELP_ID, | 40 new MouseOverHelp( |
| 41 CaptureView.LIMIT_HELP_HOVER_ID); | 41 CaptureView.LIMIT_HELP_ID, CaptureView.LIMIT_HELP_HOVER_ID); |
| 42 | 42 |
| 43 new MouseOverHelp(CaptureView.BYTE_LOGGING_HELP_ID, | 43 new MouseOverHelp( |
| 44 CaptureView.BYTE_LOGGING_HELP_HOVER_ID); | 44 CaptureView.BYTE_LOGGING_HELP_ID, |
| 45 CaptureView.BYTE_LOGGING_HELP_HOVER_ID); |
| 45 | 46 |
| 46 this.onChangeLimit_(); | 47 this.onChangeLimit_(); |
| 47 } | 48 } |
| 48 | 49 |
| 49 CaptureView.TAB_ID = 'tab-handle-capture'; | 50 CaptureView.TAB_ID = 'tab-handle-capture'; |
| 50 CaptureView.TAB_NAME = 'Capture'; | 51 CaptureView.TAB_NAME = 'Capture'; |
| 51 CaptureView.TAB_HASH = '#capture'; | 52 CaptureView.TAB_HASH = '#capture'; |
| 52 | 53 |
| 53 // IDs for special HTML elements in capture_view.html | 54 // IDs for special HTML elements in capture_view.html |
| 54 CaptureView.MAIN_BOX_ID = 'capture-view-tab-content'; | 55 CaptureView.MAIN_BOX_ID = 'capture-view-tab-content'; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 MainView.getInstance().switchToViewOnlyMode(); | 132 MainView.getInstance().switchToViewOnlyMode(); |
| 132 }, | 133 }, |
| 133 | 134 |
| 134 onResetButtonClicked_: function() { | 135 onResetButtonClicked_: function() { |
| 135 EventsTracker.getInstance().deleteAllLogEntries(); | 136 EventsTracker.getInstance().deleteAllLogEntries(); |
| 136 }, | 137 }, |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 return CaptureView; | 140 return CaptureView; |
| 140 })(); | 141 })(); |
| OLD | NEW |