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

Side by Side Diff: Source/devtools/front_end/common/utilities.js

Issue 389563002: DevTools: make paint profiler target-aware (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed a test and a stray line Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 this._outgoingCallback(); 1770 this._outgoingCallback();
1771 } 1771 }
1772 } 1772 }
1773 1773
1774 /** 1774 /**
1775 * @param {*} value 1775 * @param {*} value
1776 */ 1776 */
1777 function suppressUnused(value) 1777 function suppressUnused(value)
1778 { 1778 {
1779 } 1779 }
1780
1781 /**
1782 * @constructor
1783 * @param {!T} targetObject
1784 * @template T
1785 */
1786 function WeakReference(targetObject)
1787 {
1788 this._targetObject = targetObject;
1789 }
1790
1791 WeakReference.prototype = {
1792 /**
1793 * @return {?T}
1794 */
1795 get: function()
1796 {
1797 return this._targetObject;
1798 },
1799
1800 clear: function()
1801 {
1802 this._targetObject = null;
1803 }
1804 };
1805
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698