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

Side by Side Diff: netlog_viewer/quic_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 unified diff | Download patch
« no previous file with comments | « netlog_viewer/quic_view.html ('k') | netlog_viewer/resizable_vertical_split_view.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 * This view displays a summary of the state of each QUIC session, and
7 * has links to display them in the events tab.
8 */
9 var QuicView = (function() {
10 'use strict';
11
12 // We inherit from DivView.
13 var superClass = DivView;
14
15 /**
16 * @constructor
17 */
18 function QuicView() {
19 assertFirstConstructorCall(QuicView);
20
21 // Call superclass's constructor.
22 superClass.call(this, QuicView.MAIN_BOX_ID);
23
24 g_browser.addQuicInfoObserver(this, true);
25 }
26
27 QuicView.TAB_ID = 'tab-handle-quic';
28 QuicView.TAB_NAME = 'QUIC';
29 QuicView.TAB_HASH = '#quic';
30
31 // IDs for special HTML elements in quic_view.html
32 QuicView.MAIN_BOX_ID = 'quic-view-tab-content';
33
34 cr.addSingletonGetter(QuicView);
35
36 QuicView.prototype = {
37 // Inherit the superclass's methods.
38 __proto__: superClass.prototype,
39
40 onLoadLogFinish: function(data) {
41 return this.onQuicInfoChanged(data.quicInfo);
42 },
43
44 /**
45 * If there are any sessions, display a single table with
46 * information on each QUIC session. Otherwise, displays "None".
47 */
48 onQuicInfoChanged: function(quicInfo) {
49 if (!quicInfo)
50 return false;
51 // TODO(rayraymond): Update DOM without use of jstemplate.
52 // var input = new JsEvalContext(quicInfo);
53 // jstProcess(input, $(QuicView.MAIN_BOX_ID));
54 return true;
55 },
56 };
57
58 return QuicView;
59 })();
60
OLDNEW
« no previous file with comments | « netlog_viewer/quic_view.html ('k') | netlog_viewer/resizable_vertical_split_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698