OLD | NEW |
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 Loading... |
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 Loading... |
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
; |
OLD | NEW |