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

Side by Side Diff: tracing/tracing/ui/tracks/model_track.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: Created 4 years, 2 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/ui/base/draw_helpers.html"> 8 <link rel="import" href="/tracing/ui/base/draw_helpers.html">
9 <link rel="import" href="/tracing/ui/base/ui.html"> 9 <link rel="import" href="/tracing/ui/base/ui.html">
10 <link rel="import" href="/tracing/ui/tracks/alert_track.html"> 10 <link rel="import" href="/tracing/ui/tracks/alert_track.html">
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 var endTrack = this.viewport.trackForEvent(flowEvent.endSlice); 319 var endTrack = this.viewport.trackForEvent(flowEvent.endSlice);
320 320
321 // TODO(nduca): Figure out how to draw flow arrows even when 321 // TODO(nduca): Figure out how to draw flow arrows even when
322 // processes are collapsed, bug #931. 322 // processes are collapsed, bug #931.
323 if (startTrack === undefined || endTrack === undefined) 323 if (startTrack === undefined || endTrack === undefined)
324 return; 324 return;
325 325
326 var startBounds = startTrack.getBoundingClientRect(); 326 var startBounds = startTrack.getBoundingClientRect();
327 var endBounds = endTrack.getBoundingClientRect(); 327 var endBounds = endTrack.getBoundingClientRect();
328 328
329 if (flowEvent.selectionState == SelectionState.SELECTED) { 329 if (flowEvent.selectionState === SelectionState.SELECTED) {
330 ctx.shadowBlur = 1; 330 ctx.shadowBlur = 1;
331 ctx.shadowColor = 'red'; 331 ctx.shadowColor = 'red';
332 ctx.shadowOffsety = 2; 332 ctx.shadowOffsety = 2;
333 ctx.strokeStyle = 'red'; 333 ctx.strokeStyle = 'red';
334 } else if (flowEvent.selectionState == SelectionState.HIGHLIGHTED) { 334 } else if (flowEvent.selectionState === SelectionState.HIGHLIGHTED) {
335 ctx.shadowBlur = 1; 335 ctx.shadowBlur = 1;
336 ctx.shadowColor = 'red'; 336 ctx.shadowColor = 'red';
337 ctx.shadowOffsety = 2; 337 ctx.shadowOffsety = 2;
338 ctx.strokeStyle = 'red'; 338 ctx.strokeStyle = 'red';
339 } else if (flowEvent.selectionState == SelectionState.DIMMED) { 339 } else if (flowEvent.selectionState === SelectionState.DIMMED) {
340 ctx.shadowBlur = 0; 340 ctx.shadowBlur = 0;
341 ctx.shadowOffsetX = 0; 341 ctx.shadowOffsetX = 0;
342 ctx.strokeStyle = 'rgba(0, 0, 0, 0.2)'; 342 ctx.strokeStyle = 'rgba(0, 0, 0, 0.2)';
343 } else { 343 } else {
344 var hasBoost = false; 344 var hasBoost = false;
345 var startSlice = flowEvent.startSlice; 345 var startSlice = flowEvent.startSlice;
346 hasBoost |= startSlice.selectionState === SelectionState.SELECTED; 346 hasBoost |= startSlice.selectionState === SelectionState.SELECTED;
347 hasBoost |= startSlice.selectionState === SelectionState.HIGHLIGHTED; 347 hasBoost |= startSlice.selectionState === SelectionState.HIGHLIGHTED;
348 var endSlice = flowEvent.endSlice; 348 var endSlice = flowEvent.endSlice;
349 hasBoost |= endSlice.selectionState === SelectionState.SELECTED; 349 hasBoost |= endSlice.selectionState === SelectionState.SELECTED;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 tr.ui.tracks.ContainerTrack.prototype.addClosestEventToSelection. 432 tr.ui.tracks.ContainerTrack.prototype.addClosestEventToSelection.
433 apply(this, arguments); 433 apply(this, arguments);
434 } 434 }
435 }; 435 };
436 436
437 return { 437 return {
438 ModelTrack: ModelTrack 438 ModelTrack: ModelTrack
439 }; 439 };
440 }); 440 });
441 </script> 441 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698