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

Unified Diff: chrome/browser/resources/settings/printing_page/cups_printers.html

Issue 2380753004: [CUPS] Implement the Webui handler for the printers auto discovery. (Closed)
Patch Set: Rebase Created 4 years, 2 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/settings/printing_page/cups_printers.html
diff --git a/chrome/browser/resources/settings/printing_page/cups_printers.html b/chrome/browser/resources/settings/printing_page/cups_printers.html
index 9acd73f8b9b43756d788ffc8d91a9fd82d92f459..e0708b2ff660059a7c0cb6383eadb99bb5c10f86 100644
--- a/chrome/browser/resources/settings/printing_page/cups_printers.html
+++ b/chrome/browser/resources/settings/printing_page/cups_printers.html
@@ -15,7 +15,7 @@
color: blue;
text-decoration: underline;
}
-
+
#message {
display: flex;
justify-content: center;
@@ -33,6 +33,15 @@
text-align: center;
width: 350px;
}
+
+ #addPrinterErrorMessage {
+ display: flex;
+ justify-content: space-around;
+ }
+
+ #addPrinterErrorMessage a[is='action-link'] {
+ text-transform: uppercase;
+ }
</style>
<div class="settings-box first">
@@ -49,9 +58,15 @@
</settings-cups-printers-list>
<div id="message">
- <div class="center" id="addPrinterMessage" hidden>
+ <div class="center" id="addPrinterDoneMessage" hidden>
$i18n{printerAddedSuccessfulMessage}
</div>
+ <div class="center" id="addPrinterErrorMessage" hidden>
+ <span>$i18n{printerAddedFailedMessage}</span>
+ <a is="action-link" on-tap="onAddPrinterTap_" actionable>
+ $i18n{printerAddedTryAgainMessage}
+ </a>
+ </div>
</div>
</template>
<script src="cups_printers.js"></script>

Powered by Google App Engine
This is Rietveld 408576698