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

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: Fix stray space in test Created 3 years, 7 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 this._toggleRecordAction = /** @type {!UI.Action }*/ (UI.actionRegistry.acti on('network.toggle-recording')); 43 this._toggleRecordAction = /** @type {!UI.Action }*/ (UI.actionRegistry.acti on('network.toggle-recording'));
44 44
45 /** @type {?PerfUI.FilmStripView} */ 45 /** @type {?PerfUI.FilmStripView} */
46 this._filmStripView = null; 46 this._filmStripView = null;
47 /** @type {?Network.NetworkPanel.FilmStripRecorder} */ 47 /** @type {?Network.NetworkPanel.FilmStripRecorder} */
48 this._filmStripRecorder = null; 48 this._filmStripRecorder = null;
49 49
50 this._panelToolbar = new UI.Toolbar('', this.element); 50 this._panelToolbar = new UI.Toolbar('', this.element);
51 this._filterBar = new UI.FilterBar('networkPanel', true); 51 this._filterBar = new UI.FilterBar('networkPanel', true);
52 this._filterBar.show(this.element); 52 this._filterBar.show(this.element);
53 this.setDefaultFocusedChild(this._filterBar);
53 54
54 this._filmStripPlaceholderElement = this.element.createChild('div'); 55 this._filmStripPlaceholderElement = this.element.createChild('div');
55 56
56 // Create top overview component. 57 // Create top overview component.
57 this._overviewPane = new PerfUI.TimelineOverviewPane('network'); 58 this._overviewPane = new PerfUI.TimelineOverviewPane('network');
58 this._overviewPane.addEventListener( 59 this._overviewPane.addEventListener(
59 PerfUI.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged. bind(this)); 60 PerfUI.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged. bind(this));
60 this._overviewPane.element.id = 'network-overview-panel'; 61 this._overviewPane.element.id = 'network-overview-panel';
61 this._networkOverview = new Network.NetworkOverview(); 62 this._networkOverview = new Network.NetworkOverview();
62 this._overviewPane.setOverviewControls([this._networkOverview]); 63 this._overviewPane.setOverviewControls([this._networkOverview]);
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 * @param {string} actionId 721 * @param {string} actionId
721 * @return {boolean} 722 * @return {boolean}
722 */ 723 */
723 handleAction(context, actionId) { 724 handleAction(context, actionId) {
724 var panel = UI.context.flavor(Network.NetworkPanel); 725 var panel = UI.context.flavor(Network.NetworkPanel);
725 console.assert(panel && panel instanceof Network.NetworkPanel); 726 console.assert(panel && panel instanceof Network.NetworkPanel);
726 panel._toggleRecording(); 727 panel._toggleRecording();
727 return true; 728 return true;
728 } 729 }
729 }; 730 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698