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