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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js

Issue 2805593002: DevTools: Navigate TabbedPane with arrow keys (Closed)
Patch Set: nextTabElement Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 /** @type {!UI.Action }*/ (UI.actionRegistry.action('network.toggle-reco rding')); 44 /** @type {!UI.Action }*/ (UI.actionRegistry.action('network.toggle-reco rding'));
45 45
46 /** @type {?PerfUI.FilmStripView} */ 46 /** @type {?PerfUI.FilmStripView} */
47 this._filmStripView = null; 47 this._filmStripView = null;
48 /** @type {?Network.NetworkPanel.FilmStripRecorder} */ 48 /** @type {?Network.NetworkPanel.FilmStripRecorder} */
49 this._filmStripRecorder = null; 49 this._filmStripRecorder = null;
50 50
51 this._panelToolbar = new UI.Toolbar('', this.element); 51 this._panelToolbar = new UI.Toolbar('', this.element);
52 this._filterBar = new UI.FilterBar('networkPanel', true); 52 this._filterBar = new UI.FilterBar('networkPanel', true);
53 this._filterBar.show(this.element); 53 this._filterBar.show(this.element);
54 this.setDefaultFocusedChild(this._filterBar);
54 55
55 // Create top overview component. 56 // Create top overview component.
56 this._overviewPane = new PerfUI.TimelineOverviewPane('network'); 57 this._overviewPane = new PerfUI.TimelineOverviewPane('network');
57 this._overviewPane.addEventListener( 58 this._overviewPane.addEventListener(
58 PerfUI.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged. bind(this)); 59 PerfUI.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged. bind(this));
59 this._overviewPane.element.id = 'network-overview-panel'; 60 this._overviewPane.element.id = 'network-overview-panel';
60 this._networkOverview = new Network.NetworkOverview(); 61 this._networkOverview = new Network.NetworkOverview();
61 this._overviewPane.setOverviewControls([this._networkOverview]); 62 this._overviewPane.setOverviewControls([this._networkOverview]);
62 this._calculator = new Network.NetworkTransferTimeCalculator(); 63 this._calculator = new Network.NetworkTransferTimeCalculator();
63 64
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 * @param {string} actionId 748 * @param {string} actionId
748 * @return {boolean} 749 * @return {boolean}
749 */ 750 */
750 handleAction(context, actionId) { 751 handleAction(context, actionId) {
751 var panel = UI.context.flavor(Network.NetworkPanel); 752 var panel = UI.context.flavor(Network.NetworkPanel);
752 console.assert(panel && panel instanceof Network.NetworkPanel); 753 console.assert(panel && panel instanceof Network.NetworkPanel);
753 panel._toggleRecording(); 754 panel._toggleRecording();
754 return true; 755 return true;
755 } 756 }
756 }; 757 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698