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

Side by Side Diff: Source/devtools/front_end/resources/DatabaseQueryView.js

Issue 720223002: DevTools: only allow status bar items in status bars. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 6 years, 1 month 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/resources/DOMStorageItemsView.js ('k') | Source/devtools/front_end/resources/DatabaseTableView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698