OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |