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

Unified Diff: chrome/browser/resources/about_memory_linux.html

Issue 10796054: Adapt the linux about_memory page to better render on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve nits Created 8 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/about_memory_linux.html
diff --git a/chrome/browser/resources/about_memory_linux.html b/chrome/browser/resources/about_memory_linux.html
index 17b6e3aa73a2a2fb7f961cfeb8490a16751990e6..7ac32788b4e46a07e6414de4852a465197f410b7 100644
--- a/chrome/browser/resources/about_memory_linux.html
+++ b/chrome/browser/resources/about_memory_linux.html
@@ -6,32 +6,15 @@ about:memory template page
<html id="t">
<head>
<title>About Memory</title>
+<if expr="pp_ifdef('android')">
+ <meta name="viewport" content="width=device-width"/>
+</if>
<link rel="stylesheet" href="shared/css/about_memory.css">
-<style>
-body {
- font-family: Arial, Helvetica, sans-serif;
-}
-div#header select {
- font-family: Arial, Helvetica, sans-serif;
-}
-div.otherbrowsers {
- font-family: Arial, Helvetica, sans-serif;
-}
-table.list#browserComparison tr:not([class*='firstRow']) > *:nth-child(1),
-table.list#browserComparison tr:not([class*='firstRow']) > *:nth-child(4),
-table.list#browserComparison tr.firstRow th:nth-child(1) {
- border-right: 1px solid #b5c6de;
-}
-table.list#memoryDetails tr:not([class*='firstRow']) > *:nth-child(2),
-table.list#memoryDetails tr:not([class*='firstRow']) > *:nth-child(5),
-table.list#memoryDetails tr.firstRow th:nth-child(2) {
- border-right: 1px solid #b5c6de;
-}
-</style>
-<script src="chrome://memory-redirect/memory.js"></script>
-<script src="chrome://memory-redirect/strings.js"></script>
+ <link rel="stylesheet" href="about_memory_linux.css">
+ <script src="chrome://memory-redirect/memory.js"></script>
+ <script src="chrome://memory-redirect/strings.js"></script>
</head>
-<body>
+<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id='header'>
<h1>
About memory
@@ -46,13 +29,7 @@ table.list#memoryDetails tr.firstRow th:nth-child(2) {
Summary
<div class='help'>
<div>
- <p>
- Summary of memory used by currently active browsers.
- For browsers which use multiple processes, memory reflects
- aggregate memory used across all browser processes.<p>
- For Chromium, processes used to to display diagnostics
- information (such as this "about:memory") are excluded.
- </p>
+ <p class='summary-desc' i18n-values=".innerHTML:summary_desc"></p>
</div>
</div>
</h2>
@@ -221,6 +198,8 @@ table.list#memoryDetails tr.firstRow th:nth-child(2) {
<div class="otherbrowsers">(The memory usage of our renderer processes is slightly less accurate when they are sandboxed.)</div>
</div>
+ <script src="chrome://resources/js/i18n_template.js"></script>
+ <script src="chrome://resources/js/i18n_process.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698