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

Side by Side Diff: third_party/WebKit/WebCore/inspector/front-end/DatabaseQueryView.js

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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) 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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 WebInspector.DatabaseQueryView = function(database) 26 WebInspector.DatabaseQueryView = function(database)
27 { 27 {
28 WebInspector.View.call(this); 28 WebInspector.View.call(this);
29 29
30 this.database = database; 30 this.database = database;
31 31
32 this.element.addStyleClass("database-view"); 32 this.element.addStyleClass("storage-view");
33 this.element.addStyleClass("query"); 33 this.element.addStyleClass("query");
34 this.element.tabIndex = 0; 34 this.element.tabIndex = 0;
35 35
36 this.element.addEventListener("selectstart", this._selectStart.bind(this), f alse); 36 this.element.addEventListener("selectstart", this._selectStart.bind(this), f alse);
37 37
38 this.promptElement = document.createElement("div"); 38 this.promptElement = document.createElement("div");
39 this.promptElement.className = "database-query-prompt"; 39 this.promptElement.className = "database-query-prompt";
40 this.promptElement.appendChild(document.createElement("br")); 40 this.promptElement.appendChild(document.createElement("br"));
41 this.promptElement.handleKeyEvent = this._promptKeyDown.bind(this); 41 this.promptElement.handleKeyEvent = this._promptKeyDown.bind(this);
42 this.element.appendChild(this.promptElement); 42 this.element.appendChild(this.promptElement);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 if (resultElement.childNodes.length) 191 if (resultElement.childNodes.length)
192 element.appendChild(resultElement); 192 element.appendChild(resultElement);
193 193
194 this.element.insertBefore(element, this.promptElement); 194 this.element.insertBefore(element, this.promptElement);
195 this.promptElement.scrollIntoView(false); 195 this.promptElement.scrollIntoView(false);
196 } 196 }
197 } 197 }
198 198
199 WebInspector.DatabaseQueryView.prototype.__proto__ = WebInspector.View.prototype ; 199 WebInspector.DatabaseQueryView.prototype.__proto__ = WebInspector.View.prototype ;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698