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

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: 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"></style>
11 <style>
12 .list-frame {
13 -webkit-padding-end: 0;
14 -webkit-padding-start: 0;
15 }
16
17 .list-item {
18 -webkit-padding-start: 20px;
19 min-height: 35px;
20 }
21
michaelpg 2016/08/29 17:10:33 nit: remove trailing blank line
xdai1 2016/08/29 18:45:45 Done.
22 </style>
23 <div class="list-frame">
24 <array-selector id="arraySelector" items="[[printers]]"
25 selected="{{selectedPrinter}}">
26 </array-selector>
27 <template is="dom-repeat" items="[[printers]]">
28 <paper-item class="list-item" on-tap="onSelect_">
29 [[item.printerName]] [[item.printerModel]]
30 </paper-item>
31 </template>
32 </div>
33 </template>
34 </dom-module>
35
36 <dom-module id="add-printer-dialog-template">
37 <template>
38 <style include="settings-shared"></style>
39 <style>
40 #dialog .body {
41 -webkit-padding-end: 0;
42 -webkit-padding-start: 0;
43 height: 350px;
44 }
45
46 #dialog .button-container {
47 border-top: 1px solid rgba(0, 0, 0, 0.14);
48 margin-top: 0;
49 padding-top: 10px;
50 }
51
52 #dialog .button-container ::content paper-button {
53 font-size: 14px;
54 font-weight: bold;
55 }
56 </style>
57
58 <dialog is="cr-dialog" id="dialog">
59 <div class="title">$i18n{addPrinterTitle}</div>
60 <div class="body">
61 <content select=":not(paper-button)"></content>
michaelpg 2016/08/29 17:10:33 IMO this is a bit dangerous -- if I try to add a <
xdai1 2016/08/29 18:45:45 Thanks! This logic works for this particular setup
62 </div>
63 <div class="button-container">
64 <content select="paper-button"></content>
65 </div>
66 </dialog>
67 </template>
68 <script src="cups_add_printer_dialog_util.js"></script>
69 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698