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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/FlameChart.js

Issue 1463393003: DevTools: Make item info follow the mouse on the flame chart. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 /** 1 /**
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 684
685 if (!this._enabled()) 685 if (!this._enabled())
686 return; 686 return;
687 687
688 if (this._isDragging) 688 if (this._isDragging)
689 return; 689 return;
690 690
691 var inDividersBar = event.offsetY < WebInspector.FlameChart.DividersBarH eight; 691 var inDividersBar = event.offsetY < WebInspector.FlameChart.DividersBarH eight;
692 this._highlightedMarkerIndex = inDividersBar ? this._markerIndexAtPositi on(event.offsetX) : -1; 692 this._highlightedMarkerIndex = inDividersBar ? this._markerIndexAtPositi on(event.offsetX) : -1;
693 this._updateMarkerHighlight(); 693 this._updateMarkerHighlight();
694 this._entryInfo.style.left = event.offsetX + "px";
695 this._entryInfo.style.top = event.offsetY + "px";
694 696
695 this._highlightEntry(this._coordinatesToEntryIndex(event.offsetX, event. offsetY)); 697 this._highlightEntry(this._coordinatesToEntryIndex(event.offsetX, event. offsetY));
696 }, 698 },
697 699
698 _onMouseOut: function() 700 _onMouseOut: function()
699 { 701 {
700 this._highlightEntry(-1); 702 this._highlightEntry(-1);
701 }, 703 },
702 704
703 /** 705 /**
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 this.update(); 1541 this.update();
1540 }, 1542 },
1541 1543
1542 _enabled: function() 1544 _enabled: function()
1543 { 1545 {
1544 return this._rawTimelineDataLength !== 0; 1546 return this._rawTimelineDataLength !== 0;
1545 }, 1547 },
1546 1548
1547 __proto__: WebInspector.HBox.prototype 1549 __proto__: WebInspector.HBox.prototype
1548 } 1550 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698