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
3 // found in the LICENSE file.
6 * The status view at the top of the page when viewing a loaded dump file.
8 var LoadedStatusView = (function() {
11 // We inherit from DivView.
12 var superClass = DivView;
14 function LoadedStatusView() {
15 superClass.call(this, LoadedStatusView.MAIN_BOX_ID);
18 LoadedStatusView.MAIN_BOX_ID = 'loaded-status-view';
19 LoadedStatusView.DUMP_FILE_NAME_ID = 'loaded-status-view-dump-file-name';
21 LoadedStatusView.prototype = {
22 // Inherit the superclass's methods.
23 __proto__: superClass.prototype,
25 setFileName: function(fileName) {
26 $(LoadedStatusView.DUMP_FILE_NAME_ID).innerText = fileName;
30 return LoadedStatusView;