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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.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/ui_lazy/ViewportDataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
index 4ab5b32df933bb9f183028a2a8c38b9159cba7df..2e3e5775366051c92d799360238086039507aa4d 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
@@ -4,11 +4,11 @@
/**
* @unrestricted
*/
-WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
+UI.ViewportDataGrid = class extends UI.DataGrid {
/**
- * @param {!Array.<!WebInspector.DataGrid.ColumnDescriptor>} columnsArray
- * @param {function(!WebInspector.DataGridNode, string, string, string)=} editCallback
- * @param {function(!WebInspector.DataGridNode)=} deleteCallback
+ * @param {!Array.<!UI.DataGrid.ColumnDescriptor>} columnsArray
+ * @param {function(!UI.DataGridNode, string, string, string)=} editCallback
+ * @param {function(!UI.DataGridNode)=} deleteCallback
* @param {function()=} refreshCallback
*/
constructor(columnsArray, editCallback, deleteCallback, refreshCallback) {
@@ -19,9 +19,9 @@ WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
// This is not in setScrollContainer because mouse wheel needs to detect events on the content not the scrollbar itself.
this._scrollContainer.addEventListener('mousewheel', this._onWheel.bind(this), true);
- /** @type {!Array.<!WebInspector.ViewportDataGridNode>} */
+ /** @type {!Array.<!UI.ViewportDataGridNode>} */
this._visibleNodes = [];
- /** @type {?Array.<!WebInspector.ViewportDataGridNode>} */
+ /** @type {?Array.<!UI.ViewportDataGridNode>} */
this._flatNodes = null;
/** @type {boolean} */
this._inline = false;
@@ -41,7 +41,7 @@ WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
/** @type {number} */
this._lastScrollTop = 0;
- this.setRootNode(new WebInspector.ViewportDataGridNode());
+ this.setRootNode(new UI.ViewportDataGridNode());
}
/**
@@ -120,7 +120,7 @@ WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
}
/**
- * @return {!Array.<!WebInspector.ViewportDataGridNode>}
+ * @return {!Array.<!UI.ViewportDataGridNode>}
*/
_flatNodesList() {
if (this._flatNodes)
@@ -150,7 +150,7 @@ WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
/**
* @param {number} clientHeight
* @param {number} scrollTop
- * @return {{topPadding: number, bottomPadding: number, contentHeight: number, visibleNodes: !Array.<!WebInspector.ViewportDataGridNode>, offset: number}}
+ * @return {{topPadding: number, bottomPadding: number, contentHeight: number, visibleNodes: !Array.<!UI.ViewportDataGridNode>, offset: number}}
*/
_calculateVisibleNodes(clientHeight, scrollTop) {
var nodes = this._flatNodesList();
@@ -253,11 +253,11 @@ WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
this.updateWidths();
}
this._visibleNodes = visibleNodes;
- this.dispatchEventToListeners(WebInspector.ViewportDataGrid.Events.ViewportCalculated);
+ this.dispatchEventToListeners(UI.ViewportDataGrid.Events.ViewportCalculated);
}
/**
- * @param {!WebInspector.ViewportDataGridNode} node
+ * @param {!UI.ViewportDataGridNode} node
*/
_revealViewportNode(node) {
var nodes = this._flatNodesList();
@@ -280,14 +280,14 @@ WebInspector.ViewportDataGrid = class extends WebInspector.DataGrid {
}
};
-WebInspector.ViewportDataGrid.Events = {
+UI.ViewportDataGrid.Events = {
ViewportCalculated: Symbol('ViewportCalculated')
};
/**
* @unrestricted
*/
-WebInspector.ViewportDataGridNode = class extends WebInspector.DataGridNode {
+UI.ViewportDataGridNode = class extends UI.DataGridNode {
/**
* @param {?Object.<string, *>=} data
* @param {boolean=} hasChildren
@@ -326,7 +326,7 @@ WebInspector.ViewportDataGridNode = class extends WebInspector.DataGridNode {
/**
* @override
- * @param {!WebInspector.DataGridNode} child
+ * @param {!UI.DataGridNode} child
* @param {number} index
*/
insertChild(child, index) {
@@ -352,7 +352,7 @@ WebInspector.ViewportDataGridNode = class extends WebInspector.DataGridNode {
/**
* @override
- * @param {!WebInspector.DataGridNode} child
+ * @param {!UI.DataGridNode} child
*/
removeChild(child) {
if (this.dataGrid)

Powered by Google App Engine
This is Rietveld 408576698