OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * Factory function to create a View for seeing statistics about profiling | |
7 * events. | |
8 */ | |
9 var CreateStatsView; | |
10 | |
11 // ----------------------------------------------------------------------------- | |
12 // Private implementation | |
13 // ----------------------------------------------------------------------------- | |
14 | |
15 (function() { | |
16 | |
17 CreateStatsView = function(filters, entries) { | |
18 return new StatsView(filters, entries); | |
19 }; | |
20 | |
21 function StatsView(filters, entries) { | |
22 this.parent_ = document.getElementById("stats_container"); | |
23 this.entries_ = entries; | |
24 this.filters_ = filters; | |
25 this.Draw(); | |
26 } | |
27 | |
28 StatsView.prototype.OnShow = function(visible) { | |
29 }; | |
30 | |
31 StatsView.prototype.Draw = function() { | |
32 this.parent_.innerHTML = ""; | |
33 DomUtil.AddText(this.parent_, "TODO(maruel)"); | |
34 }; | |
35 | |
36 })(); // Private implementation. | |
37 | |
38 CreateStatsView.display_name = "Stats view"; | |
OLD | NEW |