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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/platform/utilities.js

Issue 2604013003: [DevTools] Support variable height in ListControl. (Closed)
Patch Set: Created 3 years, 11 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 /* 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 r = m; 711 r = m;
712 } 712 }
713 return r; 713 return r;
714 } 714 }
715 }); 715 });
716 716
717 Object.defineProperty(Uint32Array.prototype, 'lowerBound', {value: Array.prototy pe.lowerBound}); 717 Object.defineProperty(Uint32Array.prototype, 'lowerBound', {value: Array.prototy pe.lowerBound});
718 718
719 Object.defineProperty(Uint32Array.prototype, 'upperBound', {value: Array.prototy pe.upperBound}); 719 Object.defineProperty(Uint32Array.prototype, 'upperBound', {value: Array.prototy pe.upperBound});
720 720
721 Object.defineProperty(Int32Array.prototype, 'lowerBound', {value: Array.prototyp e.lowerBound});
722
723 Object.defineProperty(Int32Array.prototype, 'upperBound', {value: Array.prototyp e.upperBound});
724
721 Object.defineProperty(Float64Array.prototype, 'lowerBound', {value: Array.protot ype.lowerBound}); 725 Object.defineProperty(Float64Array.prototype, 'lowerBound', {value: Array.protot ype.lowerBound});
722 726
723 Object.defineProperty(Array.prototype, 'binaryIndexOf', { 727 Object.defineProperty(Array.prototype, 'binaryIndexOf', {
724 /** 728 /**
725 * @param {!T} value 729 * @param {!T} value
726 * @param {function(!T,!S):number} comparator 730 * @param {function(!T,!S):number} comparator
727 * @return {number} 731 * @return {number}
728 * @this {Array.<!S>} 732 * @this {Array.<!S>}
729 * @template T,S 733 * @template T,S
730 */ 734 */
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 while (leftIndex < leftKeys.length) { 1433 while (leftIndex < leftKeys.length) {
1430 var leftKey = leftKeys[leftIndex++]; 1434 var leftKey = leftKeys[leftIndex++];
1431 removed.push(this.get(leftKey)); 1435 removed.push(this.get(leftKey));
1432 } 1436 }
1433 while (rightIndex < rightKeys.length) { 1437 while (rightIndex < rightKeys.length) {
1434 var rightKey = rightKeys[rightIndex++]; 1438 var rightKey = rightKeys[rightIndex++];
1435 added.push(other.get(rightKey)); 1439 added.push(other.get(rightKey));
1436 } 1440 }
1437 return {added: added, removed: removed, equal: equal}; 1441 return {added: added, removed: removed, equal: equal};
1438 }; 1442 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698