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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/table.js

Issue 7606029: WebUI TaskManager: Supports background-page mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months 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: chrome/browser/resources/shared/js/cr/ui/table.js
diff --git a/chrome/browser/resources/shared/js/cr/ui/table.js b/chrome/browser/resources/shared/js/cr/ui/table.js
index 71f36e1b1f616e45322afab3c191ce0a95dd74b5..4aeb18b8f12a73630cbba837c84d0e6fe417a18c 100644
--- a/chrome/browser/resources/shared/js/cr/ui/table.js
+++ b/chrome/browser/resources/shared/js/cr/ui/table.js
@@ -101,6 +101,26 @@ cr.define('cr.ui', function() {
},
/**
+ * Returns render function for row.
+ * @return {Function(*, cr.ui.Table): HTMLElement} Render function.
+ */
+ getRenderFunction: function() {
+ return this.list_.renderFunction_;
+ },
+
+ /**
+ * Sets render function for row.
+ * @param {Function(*, cr.ui.Table): HTMLElement} Render function.
+ */
+ setRenderFunction: function(renderFunction) {
+ if (renderFunction === this.list_.renderFunction_)
+ return;
+
+ this.list_.renderFunction_ = renderFunction;
+ cr.dispatchSimpleEvent(this, 'change');
+ },
+
+ /**
* The header of the table.
*
* @type {cr.ui.table.TableColumnModel}

Powered by Google App Engine
This is Rietveld 408576698