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

Unified Diff: components/proximity_auth/webui/resources/log-panel.html

Issue 1135293002: Hook up PA_LOG() logs to chrome://proximity-auth WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stop using release() Created 5 years, 7 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: components/proximity_auth/webui/resources/log-panel.html
diff --git a/components/proximity_auth/webui/resources/log-panel.html b/components/proximity_auth/webui/resources/log-panel.html
index f59191f6b44801d5137e5acedf9d058a421dd2a3..5b0ef015886e6054084677261834856e567f54f7 100644
--- a/components/proximity_auth/webui/resources/log-panel.html
+++ b/components/proximity_auth/webui/resources/log-panel.html
@@ -2,6 +2,7 @@
<link href="chrome://resources/polymer/core-toolbar/core-toolbar.html" rel="import">
<link href="chrome://resources/polymer/paper-icon-button/paper-icon-button.html" rel="import">
<link href="chrome://resources/polymer/core-icons/communication-icons.html" rel="import">
+<link href="log-buffer.html" rel="import">
<polymer-element name="log-panel" layout vertical>
<template>
@@ -28,8 +29,18 @@
padding: 15px 30px;
}
+ .list-item[severity="1"] {
+ background-color: #fffcef;
+ color: #312200;
+ }
+
+ .list-item[severity="2"] {
+ background-color: #fff1f1;
+ color: #ef0000;
+ }
+
.item-metadata {
- color: rgb(153, 153, 153);
+ color: #888888;
font-size: 10px;
}
@@ -45,18 +56,19 @@
</style>
<core-toolbar layout horizontal end-justified center
- on-click="{{clearLogs}}">
+ on-click="{{clearLogs_}}">
<paper-icon-button icon="communication:clear-all"></paper-icon-button>
</core-toolbar>
+ <log-buffer id='logBuffer' logs="{{logs}}"></log-buffer>
<div id="list" flex>
<template repeat="{{log in logs}}">
<div class="list-item {{ {selected: log.selected} | tokenList }}"
- on-click={{itemClick}}>
+ on-click={{itemClick}} severity="{{log.severity}}">
<div class="item-metadata" layout horizontal>
- <div>14:23:50</div>
+ <div>{{log.time}}</div>
<div flex></div>
- <div>proximity_auth_class.cc:123</div>
+ <div>{{stripPath_(log.file)}}:{{log.line}}</div>
</div>
<pre class="item-log" flex>{{log.text}}</pre>
</div>
« no previous file with comments | « components/proximity_auth/webui/resources/log-buffer.js ('k') | components/proximity_auth/webui/resources/log-panel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698