var option = options[optionName] || options[WebInspector.CPUProfileView._TypeFlame];
this.viewSelectComboBox.select(option);
- this._statusBarButtonsElement = document.createElement("span");
+ this._statusBarButtonsElement = createElement("span");
this.focusButton = new WebInspector.StatusBarButton(WebInspector.UIString("Focus selected function."), "focus-profile-node-status-bar-item");
this.focusButton.setEnabled(false);
WebInspector.CPUProfileView._TypeHeavy = "Heavy";
WebInspector.CPUProfileView.prototype = {
+ focus: function()
+ {
+ if (this._flameChart)
+ this._flameChart.focus();
+ else
+ WebInspector.View.prototype.focus.call(this);
+ },
+
/**
* @return {?WebInspector.Target}
*/
},
/**
- * @return {boolean}
- */
- showingFirstSearchResult: function()
- {
- return (this._currentSearchResultIndex === 0);
- },
-
- /**
- * @return {boolean}
- */
- showingLastSearchResult: function()
- {
- return (this._searchResults && this._currentSearchResultIndex === (this._searchResults.length - 1));
- },
-
- /**
* @return {number}
*/
currentSearchResultIndex: function() {