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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 this.dispatchEventToListeners(WebInspector.DatabaseQueryView.Events.
SchemaUpdated, this.database); | 162 this.dispatchEventToListeners(WebInspector.DatabaseQueryView.Events.
SchemaUpdated, this.database); |
163 }, | 163 }, |
164 | 164 |
165 _queryError: function(query, errorMessage) | 165 _queryError: function(query, errorMessage) |
166 { | 166 { |
167 this._appendErrorQueryResult(query, errorMessage); | 167 this._appendErrorQueryResult(query, errorMessage); |
168 }, | 168 }, |
169 | 169 |
170 /** | 170 /** |
171 * @param {string} query | 171 * @param {string} query |
172 * @param {!WebInspector.View} view | 172 * @param {!WebInspector.Widget} view |
173 */ | 173 */ |
174 _appendViewQueryResult: function(query, view) | 174 _appendViewQueryResult: function(query, view) |
175 { | 175 { |
176 var resultElement = this._appendQueryResult(query); | 176 var resultElement = this._appendQueryResult(query); |
177 view.show(resultElement); | 177 view.show(resultElement); |
178 | 178 |
179 this._promptElement.scrollIntoView(false); | 179 this._promptElement.scrollIntoView(false); |
180 }, | 180 }, |
181 | 181 |
182 /** | 182 /** |
(...skipping 21 matching lines...) Expand all Loading... |
204 element.appendChild(commandTextElement); | 204 element.appendChild(commandTextElement); |
205 | 205 |
206 var resultElement = createElement("div"); | 206 var resultElement = createElement("div"); |
207 resultElement.className = "database-query-result"; | 207 resultElement.className = "database-query-result"; |
208 element.appendChild(resultElement); | 208 element.appendChild(resultElement); |
209 return resultElement; | 209 return resultElement; |
210 }, | 210 }, |
211 | 211 |
212 __proto__: WebInspector.VBox.prototype | 212 __proto__: WebInspector.VBox.prototype |
213 } | 213 } |
OLD | NEW |