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

Side by Side Diff: Source/devtools/front_end/externs.js

Issue 18828002: DevTools: Replace binarySearch with lowerBound and upperBound functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline Created 7 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
« no previous file with comments | « Source/devtools/front_end/MemoryStatistics.js ('k') | Source/devtools/front_end/utilities.js » ('j') | 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 * 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 /** 80 /**
81 * @param {string} eventName 81 * @param {string} eventName
82 * @param {Function} listener 82 * @param {Function} listener
83 * @param {boolean=} capturing 83 * @param {boolean=} capturing
84 */ 84 */
85 function addEventListener(eventName, listener, capturing) {} 85 function addEventListener(eventName, listener, capturing) {}
86 86
87 /** @param {boolean=} onlyFirst */ 87 /** @param {boolean=} onlyFirst */
88 Array.prototype.remove = function(obj, onlyFirst) {} 88 Array.prototype.remove = function(obj, onlyFirst) {}
89 Array.prototype.keySet = function() {} 89 Array.prototype.keySet = function() {}
90 /** @return {number} */ 90 /**
91 Array.prototype.upperBound = function(anchor) {} 91 * @param {*} object
92 * @param {function(*,*):number=} comparator
93 * @return {number}
94 */
95 Array.prototype.lowerBound = function(object, comparator) {}
96 /**
97 * @param {*} object
98 * @param {function(*,*):number=} comparator
99 * @return {number}
100 */
101 Array.prototype.upperBound = function(object, comparator) {}
92 /** @return {number} */ 102 /** @return {number} */
93 Array.prototype.binaryIndexOf = function(anchor) {} 103 Array.prototype.binaryIndexOf = function(anchor) {}
94 Array.prototype.sortRange = function(comparator, leftBound, rightBound, k) {} 104 Array.prototype.sortRange = function(comparator, leftBound, rightBound, k) {}
95 105
96 /** 106 /**
97 * @this {Array.<number>} 107 * @this {Array.<number>}
98 * @param {function(number,number):boolean} comparator 108 * @param {function(number,number):boolean} comparator
99 * @param {number} left 109 * @param {number} left
100 * @param {number} right 110 * @param {number} right
101 * @param {number} pivotIndex 111 * @param {number} pivotIndex
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 493
484 WebInspector.settings.continuousPainting = /** type {WebInspector.Setting} */ { } 494 WebInspector.settings.continuousPainting = /** type {WebInspector.Setting} */ { }
485 WebInspector.settings.showDebugBorders = /** type {WebInspector.Setting} */ { } 495 WebInspector.settings.showDebugBorders = /** type {WebInspector.Setting} */ { }
486 WebInspector.settings.showScrollBottleneckRects = /** type {WebInspector.Setting } */ { } 496 WebInspector.settings.showScrollBottleneckRects = /** type {WebInspector.Setting } */ { }
487 WebInspector.settings.forceCompositingMode = /** type {WebInspector.Setting} */ { } 497 WebInspector.settings.forceCompositingMode = /** type {WebInspector.Setting} */ { }
488 WebInspector.settings.showFPSCounter = /** type {WebInspector.Setting} */ { } 498 WebInspector.settings.showFPSCounter = /** type {WebInspector.Setting} */ { }
489 WebInspector.settings.showPaintRects = /** type {WebInspector.Setting} */ { } 499 WebInspector.settings.showPaintRects = /** type {WebInspector.Setting} */ { }
490 500
491 /** @type {boolean} */ 501 /** @type {boolean} */
492 window.dispatchStandaloneTestRunnerMessages; 502 window.dispatchStandaloneTestRunnerMessages;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/MemoryStatistics.js ('k') | Source/devtools/front_end/utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698