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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 this._proxyElement = this._prompt.attach(this._promptElement); | 46 this._proxyElement = this._prompt.attach(this._promptElement); |
47 | 47 |
48 this.element.addEventListener("click", this._messagesClicked.bind(this), tru
e); | 48 this.element.addEventListener("click", this._messagesClicked.bind(this), tru
e); |
49 } | 49 } |
50 | 50 |
51 WebInspector.DatabaseQueryView.Events = { | 51 WebInspector.DatabaseQueryView.Events = { |
52 SchemaUpdated: "SchemaUpdated" | 52 SchemaUpdated: "SchemaUpdated" |
53 } | 53 } |
54 | 54 |
55 WebInspector.DatabaseQueryView.prototype = { | 55 WebInspector.DatabaseQueryView.prototype = { |
56 /** | |
57 * @return {!Array.<!WebInspector.ToolbarItem>} | |
58 */ | |
59 toolbarItems: function() | |
60 { | |
61 return []; | |
62 }, | |
63 | |
64 _messagesClicked: function() | 56 _messagesClicked: function() |
65 { | 57 { |
66 if (!this._prompt.isCaretInsidePrompt() && this.element.isComponentSelec
tionCollapsed()) | 58 if (!this._prompt.isCaretInsidePrompt() && this.element.isComponentSelec
tionCollapsed()) |
67 this._prompt.moveCaretToEndOfPrompt(); | 59 this._prompt.moveCaretToEndOfPrompt(); |
68 }, | 60 }, |
69 | 61 |
70 /** | 62 /** |
71 * @param {!Element} proxyElement | 63 * @param {!Element} proxyElement |
72 * @param {string} text | 64 * @param {string} text |
73 * @param {number} cursorOffset | 65 * @param {number} cursorOffset |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 element.appendChild(commandTextElement); | 197 element.appendChild(commandTextElement); |
206 | 198 |
207 var resultElement = createElement("div"); | 199 var resultElement = createElement("div"); |
208 resultElement.className = "database-query-result"; | 200 resultElement.className = "database-query-result"; |
209 element.appendChild(resultElement); | 201 element.appendChild(resultElement); |
210 return resultElement; | 202 return resultElement; |
211 }, | 203 }, |
212 | 204 |
213 __proto__: WebInspector.VBox.prototype | 205 __proto__: WebInspector.VBox.prototype |
214 } | 206 } |
OLD | NEW |