OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 if (record.startTime() <= time && time <= record.endTime()) { | 188 if (record.startTime() <= time && time <= record.endTime()) { |
189 recordToReveal = record; | 189 recordToReveal = record; |
190 return true; | 190 return true; |
191 } | 191 } |
192 // If there is no record containing the time than use the latest one
before that time. | 192 // If there is no record containing the time than use the latest one
before that time. |
193 if (!recordToReveal || record.endTime() < time && recordToReveal.end
Time() < record.endTime()) | 193 if (!recordToReveal || record.endTime() < time && recordToReveal.end
Time() < record.endTime()) |
194 recordToReveal = record; | 194 recordToReveal = record; |
195 return false; | 195 return false; |
196 } | 196 } |
197 this._model.forAllRecords(null, findRecordToReveal.bind(this)); | 197 this._model.forAllRecords(null, findRecordToReveal.bind(this)); |
198 this._delegate.selectRecord(recordToReveal); | 198 this._delegate.select(recordToReveal ? WebInspector.TimelineSelection.fr
omRecord(recordToReveal) : null); |
199 }, | 199 }, |
200 | 200 |
201 /** | 201 /** |
202 * @param {?Event} event | 202 * @param {?Event} event |
203 */ | 203 */ |
204 _onMouseOut: function(event) | 204 _onMouseOut: function(event) |
205 { | 205 { |
206 delete this._markerXPosition; | 206 delete this._markerXPosition; |
207 this._clearCurrentValueAndMarker(); | 207 this._clearCurrentValueAndMarker(); |
208 }, | 208 }, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 /** | 251 /** |
252 * @param {?WebInspector.TimelineModel.Record} record | 252 * @param {?WebInspector.TimelineModel.Record} record |
253 * @param {string=} regex | 253 * @param {string=} regex |
254 * @param {boolean=} selectRecord | 254 * @param {boolean=} selectRecord |
255 */ | 255 */ |
256 highlightSearchResult: function(record, regex, selectRecord) | 256 highlightSearchResult: function(record, regex, selectRecord) |
257 { | 257 { |
258 }, | 258 }, |
259 | 259 |
260 /** | 260 /** |
261 * @param {?WebInspector.TimelineModel.Record} record | 261 * @param {?WebInspector.TimelineSelection} selection |
262 */ | 262 */ |
263 setSelectedRecord: function(record) | 263 setSelection: function(selection) |
264 { | 264 { |
265 }, | 265 }, |
266 | 266 |
267 __proto__: WebInspector.SplitView.prototype | 267 __proto__: WebInspector.SplitView.prototype |
268 } | 268 } |
269 | 269 |
270 /** | 270 /** |
271 * @constructor | 271 * @constructor |
272 */ | 272 */ |
273 WebInspector.CountersGraph.Counter = function() | 273 WebInspector.CountersGraph.Counter = function() |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 }, | 554 }, |
555 | 555 |
556 _toggleCheckbox: function(event) | 556 _toggleCheckbox: function(event) |
557 { | 557 { |
558 this.checked = !this.checked; | 558 this.checked = !this.checked; |
559 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed
); | 559 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed
); |
560 }, | 560 }, |
561 | 561 |
562 __proto__: WebInspector.Object.prototype | 562 __proto__: WebInspector.Object.prototype |
563 } | 563 } |
OLD | NEW |