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

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

Issue 2450663004: DevTools: do not allow using 'this' before call into super. (Closed)
Patch Set: rebaselined Created 4 years, 1 month 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 24 matching lines...) Expand all
35 35
36 this.element.classList.add("storage-view", "query", "monospace"); 36 this.element.classList.add("storage-view", "query", "monospace");
37 this.element.addEventListener("selectstart", this._selectStart.bind(this), f alse); 37 this.element.addEventListener("selectstart", this._selectStart.bind(this), f alse);
38 38
39 this._promptElement = createElement("div"); 39 this._promptElement = createElement("div");
40 this._promptElement.className = "database-query-prompt"; 40 this._promptElement.className = "database-query-prompt";
41 this._promptElement.appendChild(createElement("br")); 41 this._promptElement.appendChild(createElement("br"));
42 this._promptElement.addEventListener("keydown", this._promptKeyDown.bind(thi s), true); 42 this._promptElement.addEventListener("keydown", this._promptKeyDown.bind(thi s), true);
43 this.element.appendChild(this._promptElement); 43 this.element.appendChild(this._promptElement);
44 44
45 this._prompt = new WebInspector.TextPrompt(this.completions.bind(this), " ") ; 45 this._prompt = new WebInspector.TextPrompt();
46 this._prompt.initialize(this.completions.bind(this), " ");
46 this._proxyElement = this._prompt.attach(this._promptElement); 47 this._proxyElement = this._prompt.attach(this._promptElement);
47 48
48 this.element.addEventListener("click", this._messagesClicked.bind(this), tru e); 49 this.element.addEventListener("click", this._messagesClicked.bind(this), tru e);
49 }; 50 };
50 51
51 /** @enum {symbol} */ 52 /** @enum {symbol} */
52 WebInspector.DatabaseQueryView.Events = { 53 WebInspector.DatabaseQueryView.Events = {
53 SchemaUpdated: Symbol("SchemaUpdated") 54 SchemaUpdated: Symbol("SchemaUpdated")
54 }; 55 };
55 56
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 element.appendChild(commandTextElement); 196 element.appendChild(commandTextElement);
196 197
197 var resultElement = createElement("div"); 198 var resultElement = createElement("div");
198 resultElement.className = "database-query-result"; 199 resultElement.className = "database-query-result";
199 element.appendChild(resultElement); 200 element.appendChild(resultElement);
200 return resultElement; 201 return resultElement;
201 }, 202 },
202 203
203 __proto__: WebInspector.VBox.prototype 204 __proto__: WebInspector.VBox.prototype
204 }; 205 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698