| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 } | 700 } |
| 701 }, | 701 }, |
| 702 | 702 |
| 703 _adjustScrollPosition: function(totalHeight) | 703 _adjustScrollPosition: function(totalHeight) |
| 704 { | 704 { |
| 705 // Prevent the container from being scrolled off the end. | 705 // Prevent the container from being scrolled off the end. |
| 706 if ((this._scrollTop + this._containerElementHeight) > totalHeight + 1) | 706 if ((this._scrollTop + this._containerElementHeight) > totalHeight + 1) |
| 707 this._containerElement.scrollTop = (totalHeight - this._containerEle
ment.offsetHeight); | 707 this._containerElement.scrollTop = (totalHeight - this._containerEle
ment.offsetHeight); |
| 708 }, | 708 }, |
| 709 | 709 |
| 710 _getPopoverAnchor: function(element) | 710 /** |
| 711 * @param {!Element} element |
| 712 * @param {!Event} event |
| 713 * @return {!Element|!AnchorBox|undefined} |
| 714 */ |
| 715 _getPopoverAnchor: function(element, event) |
| 711 { | 716 { |
| 712 var anchor = element.enclosingNodeOrSelfWithClass("timeline-graph-bar"); | 717 var anchor = element.enclosingNodeOrSelfWithClass("timeline-graph-bar"); |
| 713 if (anchor && anchor._tasksInfo) | 718 if (anchor && anchor._tasksInfo) |
| 714 return anchor; | 719 return anchor; |
| 715 return null; | |
| 716 }, | 720 }, |
| 717 | 721 |
| 718 _mouseOut: function() | 722 _mouseOut: function() |
| 719 { | 723 { |
| 720 this._hideQuadHighlight(); | 724 this._hideQuadHighlight(); |
| 721 }, | 725 }, |
| 722 | 726 |
| 723 /** | 727 /** |
| 724 * @param {?Event} e | 728 * @param {?Event} e |
| 725 */ | 729 */ |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 this._element.classList.remove("hidden"); | 1297 this._element.classList.remove("hidden"); |
| 1294 } else | 1298 } else |
| 1295 this._element.classList.add("hidden"); | 1299 this._element.classList.add("hidden"); |
| 1296 }, | 1300 }, |
| 1297 | 1301 |
| 1298 _dispose: function() | 1302 _dispose: function() |
| 1299 { | 1303 { |
| 1300 this._element.remove(); | 1304 this._element.remove(); |
| 1301 } | 1305 } |
| 1302 } | 1306 } |
| OLD | NEW |