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

Unified Diff: chrome/browser/resources/net_internals/logs_view.js

Issue 7474013: Extract the CSS for the net_internals EventsView and LogsView to separate files. Also rename thes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 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/net_internals/logs_view.js
===================================================================
--- chrome/browser/resources/net_internals/logs_view.js (revision 94612)
+++ chrome/browser/resources/net_internals/logs_view.js (working copy)
@@ -10,8 +10,8 @@
* @constructor
*/
function LogsView() {
- const mainBoxId = 'logsTabContent';
- const tableId = 'logTable';
+ const mainBoxId = 'logs-view-tab-content';
+ const tableId = 'logs-view-log-table';
const globalShowButtonId = 'logsGlobalShowBtn';
const globalHideButtonId = 'logsGlobalHideBtn';
const refreshLogsButtonId = 'logsRefreshBtn';
@@ -67,14 +67,14 @@
row.appendChild(rowCell);
}
// Log key cell.
- cells[0].className = 'logCellText';
+ cells[0].className = 'logs-view-log-cell-text';
cells[0].textContent = logKey;
// Cell log is displayed in. Log content is in div element that is initially
// hidden and empty.
- cells[2].className = 'logCellText';
+ cells[2].className = 'logs-view-log-cell-text';
var logDiv = document.createElement('div');
logDiv.textContent = '';
- logDiv.className = 'logCellLog';
+ logDiv.className = 'logs-view-log-cell-log';
logDiv.id = 'logsView.logCell.' + this.rows.length;
cells[2].appendChild(logDiv);
@@ -82,16 +82,16 @@
// not visible initially, so we initialize button accordingly.
var expandButton = document.createElement('button');
expandButton.textContent = 'Show...';
- expandButton.className = 'logButton';
+ expandButton.className = 'logs-view-log-button';
expandButton.addEventListener('click',
this.onButtonClicked_.bind(this, row));
// Cell that contains show/hide button.
cells[1].appendChild(expandButton);
- cells[1].className = 'logTableButtonColumn';
+ cells[1].className = 'logs-view-log-table-button-column';
// Initially, log is not visible.
- row.className = 'logRowCollapsed';
+ row.className = 'logs-view-log-row-collapsed';
// We will need those to process row buttons' onclick events.
row.logKey = logKey;
@@ -121,7 +121,7 @@
*/
LogsView.prototype.onButtonClicked_ = function(containingRow) {
if (!containingRow.logVisible) {
- containingRow.className = 'logRowExpanded';
+ containingRow.className = 'logs-view-log-row-expanded';
containingRow.expandButton.textContent = 'Hide...';
var logDiv = containingRow.logDiv;
if (logDiv.textContent == '') {
@@ -131,7 +131,7 @@
containingRow.logDiv.id);
}
} else {
- containingRow.className = 'logRowCollapsed';
+ containingRow.className = 'logs-view-log-row-collapsed';
containingRow.expandButton.textContent = 'Show...';
}
containingRow.logVisible = !containingRow.logVisible;
« no previous file with comments | « chrome/browser/resources/net_internals/logs_view.html ('k') | chrome/browser/resources/net_internals/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698