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

Side by Side Diff: Source/devtools/front_end/TimelinePanel.js

Issue 225113003: TimelinePanel: REGRESSION search doesn't work if focus not in records view. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Tracing: "Tracing" 149 Tracing: "Tracing"
150 }; 150 };
151 151
152 // Define row and header height, should be in sync with styles for timeline grap hs. 152 // Define row and header height, should be in sync with styles for timeline grap hs.
153 WebInspector.TimelinePanel.rowHeight = 18; 153 WebInspector.TimelinePanel.rowHeight = 18;
154 WebInspector.TimelinePanel.headerHeight = 20; 154 WebInspector.TimelinePanel.headerHeight = 20;
155 155
156 WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15]; 156 WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15];
157 157
158 WebInspector.TimelinePanel.prototype = { 158 WebInspector.TimelinePanel.prototype = {
159 /**
160 * @return {?WebInspector.SearchableView}
161 */
162 searchableView: function()
163 {
164 return this._searchableView;
165 },
166
159 wasShown: function() 167 wasShown: function()
160 { 168 {
161 if (!WebInspector.TimelinePanel._categoryStylesInitialized) { 169 if (!WebInspector.TimelinePanel._categoryStylesInitialized) {
162 WebInspector.TimelinePanel._categoryStylesInitialized = true; 170 WebInspector.TimelinePanel._categoryStylesInitialized = true;
163 var style = document.createElement("style"); 171 var style = document.createElement("style");
164 var categories = WebInspector.TimelineUIUtils.categories(); 172 var categories = WebInspector.TimelineUIUtils.categories();
165 style.textContent = Object.values(categories).map(WebInspector.Timel ineUIUtils.createStyleRuleForCategory).join("\n"); 173 style.textContent = Object.values(categories).map(WebInspector.Timel ineUIUtils.createStyleRuleForCategory).join("\n");
166 document.head.appendChild(style); 174 document.head.appendChild(style);
167 } 175 }
168 }, 176 },
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 * @param {!WebInspector.TimelineModel.Record} record 1239 * @param {!WebInspector.TimelineModel.Record} record
1232 * @return {boolean} 1240 * @return {boolean}
1233 */ 1241 */
1234 accept: function(record) 1242 accept: function(record)
1235 { 1243 {
1236 return !this._hiddenRecords[record.type]; 1244 return !this._hiddenRecords[record.type];
1237 }, 1245 },
1238 1246
1239 __proto__: WebInspector.TimelineModel.Filter.prototype 1247 __proto__: WebInspector.TimelineModel.Filter.prototype
1240 } 1248 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698