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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js

Issue 2181123002: DevTools: Remove unused parameters to TextPrompt._loadCompletions callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove toLowerCase() Created 4 years, 4 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 WebInspector.DatabaseQueryView.prototype = { 55 WebInspector.DatabaseQueryView.prototype = {
56 _messagesClicked: function() 56 _messagesClicked: function()
57 { 57 {
58 if (!this._prompt.isCaretInsidePrompt() && this.element.isComponentSelec tionCollapsed()) 58 if (!this._prompt.isCaretInsidePrompt() && this.element.isComponentSelec tionCollapsed())
59 this._prompt.moveCaretToEndOfPrompt(); 59 this._prompt.moveCaretToEndOfPrompt();
60 }, 60 },
61 61
62 /** 62 /**
63 * @param {!Element} proxyElement 63 * @param {!Element} proxyElement
64 * @param {string} text
65 * @param {number} cursorOffset
66 * @param {!Range} wordRange 64 * @param {!Range} wordRange
67 * @param {boolean} force 65 * @param {boolean} force
68 * @param {function(!Array.<string>, number=)} completionsReadyCallback 66 * @param {function(!Array.<string>, number=)} completionsReadyCallback
69 */ 67 */
70 completions: function(proxyElement, text, cursorOffset, wordRange, force, co mpletionsReadyCallback) 68 completions: function(proxyElement, wordRange, force, completionsReadyCallba ck)
71 { 69 {
72 var prefix = wordRange.toString().toLowerCase(); 70 var prefix = wordRange.toString().toLowerCase();
73 if (!prefix) 71 if (!prefix)
74 return; 72 return;
75 var results = []; 73 var results = [];
76 74
77 function accumulateMatches(textArray) 75 function accumulateMatches(textArray)
78 { 76 {
79 for (var i = 0; i < textArray.length; ++i) { 77 for (var i = 0; i < textArray.length; ++i) {
80 var text = textArray[i].toLowerCase(); 78 var text = textArray[i].toLowerCase();
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 element.appendChild(commandTextElement); 195 element.appendChild(commandTextElement);
198 196
199 var resultElement = createElement("div"); 197 var resultElement = createElement("div");
200 resultElement.className = "database-query-result"; 198 resultElement.className = "database-query-result";
201 element.appendChild(resultElement); 199 element.appendChild(resultElement);
202 return resultElement; 200 return resultElement;
203 }, 201 },
204 202
205 __proto__: WebInspector.VBox.prototype 203 __proto__: WebInspector.VBox.prototype
206 } 204 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698