| OLD | NEW |
| 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 var g_browserBridge; | 5 var g_browserBridge; |
| 6 var g_mainView; | 6 var g_mainView; |
| 7 | 7 |
| 8 // TODO(eroman): Don't repeat the work of grouping, sorting, merging on every | 8 // TODO(eroman): Don't repeat the work of grouping, sorting, merging on every |
| 9 // redraw. Rather do it only once when one of its dependencies | 9 // redraw. Rather do it only once when one of its dependencies |
| 10 // change and cache the result. | 10 // change and cache the result. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 receivedData: function(data) { | 55 receivedData: function(data) { |
| 56 g_mainView.addData(data); | 56 g_mainView.addData(data); |
| 57 }, | 57 }, |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 return BrowserBridge; | 60 return BrowserBridge; |
| 61 })(); | 61 })(); |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * This class handles the presentation of our tracking view. Used as a | 64 * This class handles the presentation of our profiler view. Used as a |
| 65 * singleton. | 65 * singleton. |
| 66 */ | 66 */ |
| 67 var MainView = (function() { | 67 var MainView = (function() { |
| 68 'use strict'; | 68 'use strict'; |
| 69 | 69 |
| 70 // -------------------------------------------------------------------------- | 70 // -------------------------------------------------------------------------- |
| 71 // Important IDs in the HTML document | 71 // Important IDs in the HTML document |
| 72 // -------------------------------------------------------------------------- | 72 // -------------------------------------------------------------------------- |
| 73 | 73 |
| 74 // The search box to filter results. | 74 // The search box to filter results. |
| (...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 groupKey.push(entry); | 1538 groupKey.push(entry); |
| 1539 } | 1539 } |
| 1540 | 1540 |
| 1541 return JSON.stringify(groupKey); | 1541 return JSON.stringify(groupKey); |
| 1542 }; | 1542 }; |
| 1543 }, | 1543 }, |
| 1544 }; | 1544 }; |
| 1545 | 1545 |
| 1546 return MainView; | 1546 return MainView; |
| 1547 })(); | 1547 })(); |
| OLD | NEW |