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

Unified Diff: chrome/browser/resources/plugins.js

Issue 9958101: [WebUI] Fix rest of CSS style nits in misc. dirs so I can turn on CSS checker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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
« no previous file with comments | « chrome/browser/resources/plugins.css ('k') | chrome/browser/resources/policy.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/plugins.js
diff --git a/chrome/browser/resources/plugins.js b/chrome/browser/resources/plugins.js
index 77ec1aebd8571b0360e663816d62c7e676068739..5f9edcbc733d3e6d90e25288362b613eae2a9715 100644
--- a/chrome/browser/resources/plugins.js
+++ b/chrome/browser/resources/plugins.js
@@ -102,8 +102,7 @@ function loadShowDetailsFromPrefs(show_details) {
document.getElementById('expand').style.display =
show_details ? 'none' : 'inline';
- document.body.className =
- show_details ? 'showTmiMode' : 'hideTmiMode';
+ document.body.className = show_details ? 'show-tmi-mode' : 'hide-tmi-mode';
}
/**
@@ -117,7 +116,7 @@ function returnPluginsData(pluginsData){
// Set all page content to be visible so we can measure heights.
bodyContainer.style.visibility = 'hidden';
body.className = '';
- var slidables = document.getElementsByClassName('showInTmiMode');
+ var slidables = document.getElementsByClassName('show-in-tmi-mode');
for (var i = 0; i < slidables.length; i++)
slidables[i].style.height = 'auto';
@@ -172,7 +171,7 @@ function returnPluginsData(pluginsData){
// Explicitly set the height for each element that wants to be "slid" in and
// out when the tmiModeExpanded is toggled.
- var slidables = document.getElementsByClassName('showInTmiMode');
+ var slidables = document.getElementsByClassName('show-in-tmi-mode');
for (var i = 0; i < slidables.length; i++)
slidables[i].style.height = slidables[i].offsetHeight + 'px';
@@ -183,7 +182,7 @@ function returnPluginsData(pluginsData){
tmiModeExpanded ? 'none' : 'inline';
bodyContainer.style.visibility = 'visible';
body.className = tmiModeExpanded ?
- 'showTmiModeInitial' : 'hideTmiModeInitial';
+ 'show-tmi-mode-initial' : 'hide-tmi-mode-initial';
}
/**
@@ -210,7 +209,7 @@ function toggleTmiMode() {
tmiModeExpanded ? 'none' : 'inline';
document.body.className =
- tmiModeExpanded ? 'showTmiMode' : 'hideTmiMode';
+ tmiModeExpanded ? 'show-tmi-mode' : 'hide-tmi-mode';
chrome.send('saveShowDetailsToPrefs', [String(tmiModeExpanded)]);
}
« no previous file with comments | « chrome/browser/resources/plugins.css ('k') | chrome/browser/resources/policy.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698