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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
index 6f97d8215eb0a9281b7e0a7b350c59bbd1a75a36..ba0655b8723e2646c3d8c2c67d30869b71d1fe3c 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
@@ -26,7 +26,7 @@
/**
* @unrestricted
*/
-WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
+Resources.DatabaseQueryView = class extends UI.VBox {
constructor(database) {
super();
@@ -41,7 +41,7 @@ WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
this._promptElement.addEventListener('keydown', this._promptKeyDown.bind(this), true);
this.element.appendChild(this._promptElement);
- this._prompt = new WebInspector.TextPrompt();
+ this._prompt = new UI.TextPrompt();
this._prompt.initialize(this.completions.bind(this), ' ');
this._proxyElement = this._prompt.attach(this._promptElement);
@@ -97,7 +97,7 @@ WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
this._prompt.clearAutocomplete();
/**
- * @this {WebInspector.DatabaseQueryView}
+ * @this {Resources.DatabaseQueryView}
*/
function moveBackIfOutside() {
delete this._selectionTimeout;
@@ -131,7 +131,7 @@ WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
}
_queryFinished(query, columnNames, values) {
- var dataGrid = WebInspector.SortableDataGrid.create(columnNames, values);
+ var dataGrid = UI.SortableDataGrid.create(columnNames, values);
var trimmedQuery = query.trim();
if (dataGrid) {
@@ -141,7 +141,7 @@ WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
}
if (trimmedQuery.match(/^create /i) || trimmedQuery.match(/^drop table /i))
- this.dispatchEventToListeners(WebInspector.DatabaseQueryView.Events.SchemaUpdated, this.database);
+ this.dispatchEventToListeners(Resources.DatabaseQueryView.Events.SchemaUpdated, this.database);
}
_queryError(query, errorMessage) {
@@ -150,7 +150,7 @@ WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
/**
* @param {string} query
- * @param {!WebInspector.Widget} view
+ * @param {!UI.Widget} view
*/
_appendViewQueryResult(query, view) {
var resultElement = this._appendQueryResult(query);
@@ -188,6 +188,6 @@ WebInspector.DatabaseQueryView = class extends WebInspector.VBox {
};
/** @enum {symbol} */
-WebInspector.DatabaseQueryView.Events = {
+Resources.DatabaseQueryView.Events = {
SchemaUpdated: Symbol('SchemaUpdated')
};

Powered by Google App Engine
This is Rietveld 408576698