Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: netlog_viewer/loaded_status_view.js

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « netlog_viewer/index.html ('k') | netlog_viewer/log_grouper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: netlog_viewer/loaded_status_view.js
diff --git a/netlog_viewer/loaded_status_view.js b/netlog_viewer/loaded_status_view.js
new file mode 100644
index 0000000000000000000000000000000000000000..5093f00a836cc526010e4a8903974d0bdc967d3b
--- /dev/null
+++ b/netlog_viewer/loaded_status_view.js
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * The status view at the top of the page when viewing a loaded dump file.
+ */
+var LoadedStatusView = (function() {
+ 'use strict';
+
+ // We inherit from DivView.
+ var superClass = DivView;
+
+ function LoadedStatusView() {
+ superClass.call(this, LoadedStatusView.MAIN_BOX_ID);
+ }
+
+ LoadedStatusView.MAIN_BOX_ID = 'loaded-status-view';
+ LoadedStatusView.DUMP_FILE_NAME_ID = 'loaded-status-view-dump-file-name';
+
+ LoadedStatusView.prototype = {
+ // Inherit the superclass's methods.
+ __proto__: superClass.prototype,
+
+ setFileName: function(fileName) {
+ $(LoadedStatusView.DUMP_FILE_NAME_ID).innerText = fileName;
+ }
+ };
+
+ return LoadedStatusView;
+})();
+
« no previous file with comments | « netlog_viewer/index.html ('k') | netlog_viewer/log_grouper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698