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

Side by Side Diff: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog_util.html

Issue 2281353002: [CUPS] Implement the Add Printer dialogs. (Closed)
Patch Set: Address michaelpg@'s comments. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml">
5 <link rel="import" href="/printing_page/cups_printers_browser_proxy.html">
6 <link rel="import" href="/settings_shared_css.html">
7
8 <dom-module id="add-printer-list">
9 <template>
10 <style include="settings-shared">
11 .list-frame {
12 -webkit-padding-end: 0;
13 -webkit-padding-start: 0;
14 }
15
16 .list-item {
17 -webkit-padding-start: 20px;
18 min-height: 35px;
19 }
20 </style>
21 <div class="list-frame">
22 <array-selector id="arraySelector" items="[[printers]]"
23 selected="{{selectedPrinter}}">
24 </array-selector>
25 <template is="dom-repeat" items="[[printers]]">
26 <paper-item class="list-item" on-tap="onSelect_">
27 [[item.printerName]] [[item.printerModel]]
28 </paper-item>
29 </template>
30 </div>
31 </template>
32 </dom-module>
33
34 <dom-module id="add-printer-dialog">
35 <template>
36 <style include="settings-shared">
37 #dialog .body {
38 -webkit-padding-end: 0;
39 -webkit-padding-start: 0;
40 height: 350px;
41 }
42
43 #dialog .button-container {
44 border-top: 1px solid rgba(0, 0, 0, 0.14);
45 margin-top: 0;
46 padding-top: 10px;
47 }
48
49 #dialog .button-container ::content paper-button {
50 font-size: 14px;
51 font-weight: bold;
52 }
53 </style>
54
55 <dialog is="cr-dialog" id="dialog">
56 <div class="title">$i18n{addPrinterTitle}</div>
57 <div class="body">
58 <content select=".dialog-body"></content>
59 </div>
60 <div class="button-container">
61 <content select=".dialog-buttons"></content>
62 </div>
63 </dialog>
64 </template>
65 <script src="cups_add_printer_dialog_util.js"></script>
66 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698