| 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 /** | 5 /** |
| 6 * The ProfilingApp encapsulates the application's global state, | 6 * The ProfilingApp encapsulates the application's global state, |
| 7 * and controls its subviews. | 7 * and controls its subviews. |
| 8 * | 8 * |
| 9 * @constructor | 9 * @constructor |
| 10 */ | 10 */ |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 * @param {boolean} visible | 239 * @param {boolean} visible |
| 240 */ | 240 */ |
| 241 ProfilingApp.prototype.ShowView = function(viewName, visible) { | 241 ProfilingApp.prototype.ShowView = function(viewName, visible) { |
| 242 var element = document.getElementById(viewName + "_container"); | 242 var element = document.getElementById(viewName + "_container"); |
| 243 if (!element) { | 243 if (!element) { |
| 244 throw "Couldn't find " + viewName; | 244 throw "Couldn't find " + viewName; |
| 245 } | 245 } |
| 246 DomUtil.DisplayNode(element, visible); | 246 DomUtil.DisplayNode(element, visible); |
| 247 this.liveViews_[viewName].OnShow(visible); | 247 this.liveViews_[viewName].OnShow(visible); |
| 248 }; | 248 }; |
| OLD | NEW |