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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js

Issue 2319523004: DevTools: Remember the last focused widget. (Closed)
Patch Set: Created 4 years, 3 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.Searchable} 7 * @implements {WebInspector.Searchable}
8 * @extends {WebInspector.SimpleView} 8 * @extends {WebInspector.SimpleView}
9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter 9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter
10 * @param {!Array<string>=} viewTypes 10 * @param {!Array<string>=} viewTypes
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 /** @enum {string} */ 68 /** @enum {string} */
69 WebInspector.ProfileView.ViewTypes = { 69 WebInspector.ProfileView.ViewTypes = {
70 Flame: "Flame", 70 Flame: "Flame",
71 Tree: "Tree", 71 Tree: "Tree",
72 Heavy: "Heavy" 72 Heavy: "Heavy"
73 } 73 }
74 74
75 WebInspector.ProfileView.prototype = { 75 WebInspector.ProfileView.prototype = {
76 focus: function() 76 focus: function()
77 { 77 {
78 if (this._flameChart) 78 if (this._flameChart) {
79 this._flameChart.focus(); 79 this._flameChart.focus();
80 this.wasFocused();
81 }
80 else 82 else
81 WebInspector.Widget.prototype.focus.call(this); 83 WebInspector.Widget.prototype.focus.call(this);
82 }, 84 },
83 85
84 /** 86 /**
85 * @param {string} columnId 87 * @param {string} columnId
86 * @return {string} 88 * @return {string}
87 */ 89 */
88 columnHeader: function(columnId) 90 columnHeader: function(columnId)
89 { 91 {
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 _notifyTempFileReady: function() 586 _notifyTempFileReady: function()
585 { 587 {
586 if (this._onTempFileReady) { 588 if (this._onTempFileReady) {
587 this._onTempFileReady(); 589 this._onTempFileReady();
588 this._onTempFileReady = null; 590 this._onTempFileReady = null;
589 } 591 }
590 }, 592 },
591 593
592 __proto__: WebInspector.ProfileHeader.prototype 594 __proto__: WebInspector.ProfileHeader.prototype
593 } 595 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698