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

Side by Side Diff: Source/devtools/front_end/ui/UIUtils.js

Issue 625893002: DevTools: Run workspace mapping tip infobar animation only once (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/sourcesView.css ('k') | 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 723
724 /** 724 /**
725 * @param {!Element} element 725 * @param {!Element} element
726 * @param {string} className 726 * @param {string} className
727 */ 727 */
728 WebInspector.runCSSAnimationOnce = function(element, className) 728 WebInspector.runCSSAnimationOnce = function(element, className)
729 { 729 {
730 function animationEndCallback() 730 function animationEndCallback()
731 { 731 {
732 element.classList.remove(className); 732 element.classList.remove(className);
733 element.removeEventListener("animationend", animationEndCallback, false) ; 733 element.removeEventListener("webkitAnimationEnd", animationEndCallback, false);
734 } 734 }
735 735
736 if (element.classList.contains(className)) 736 if (element.classList.contains(className))
737 element.classList.remove(className); 737 element.classList.remove(className);
738 738
739 element.addEventListener("animationend", animationEndCallback, false); 739 element.addEventListener("webkitAnimationEnd", animationEndCallback, false);
740 element.classList.add(className); 740 element.classList.add(className);
741 } 741 }
742 742
743 /** 743 /**
744 * @param {!Element} element 744 * @param {!Element} element
745 * @param {!Array.<!WebInspector.SourceRange>} resultRanges 745 * @param {!Array.<!WebInspector.SourceRange>} resultRanges
746 * @param {string} styleClass 746 * @param {string} styleClass
747 * @param {!Array.<!Object>=} changes 747 * @param {!Array.<!Object>=} changes
748 * @return {!Array.<!Element>} 748 * @return {!Array.<!Element>}
749 */ 749 */
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 window.addEventListener("focus", WebInspector._windowFocused, false); 1078 window.addEventListener("focus", WebInspector._windowFocused, false);
1079 window.addEventListener("blur", WebInspector._windowBlurred, false); 1079 window.addEventListener("blur", WebInspector._windowBlurred, false);
1080 document.addEventListener("focus", WebInspector._focusChanged, true); 1080 document.addEventListener("focus", WebInspector._focusChanged, true);
1081 document.addEventListener("blur", WebInspector._documentBlurred, true); 1081 document.addEventListener("blur", WebInspector._documentBlurred, true);
1082 window.removeEventListener("DOMContentLoaded", windowLoaded, false); 1082 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
1083 } 1083 }
1084 1084
1085 window.addEventListener("DOMContentLoaded", windowLoaded, false); 1085 window.addEventListener("DOMContentLoaded", windowLoaded, false);
1086 1086
1087 })(); 1087 })();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sourcesView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698