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

Side by Side Diff: chrome/browser/resources/print_preview.html

Issue 6533006: Print Preview: Hook up the print button to initiate printing without displaying a print dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed review comments. Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html i18n-values="dir:textdirection;"> 2 <html i18n-values="dir:textdirection;">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title i18n-content="title"></title> 5 <title i18n-content="title"></title>
6 6
7 <link rel="stylesheet" href="webui.css"> 7 <link rel="stylesheet" href="webui.css">
8 <link rel="stylesheet" href="print_preview.css"> 8 <link rel="stylesheet" href="print_preview.css">
9 9
10 <script src="chrome://resources/js/local_strings.js"></script> 10 <script src="chrome://resources/js/local_strings.js"></script>
11 <script src="chrome://resources/js/util.js"></script> 11 <script src="chrome://resources/js/util.js"></script>
12 <script src="print_preview.js"></script> 12 <script src="print_preview.js"></script>
13 </head> 13 </head>
14 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> 14 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
15 <div id="navbar-container"> 15 <div id="navbar-container">
16 <div id="destination-container"> 16 <div id="destination-container">
17 <h1>Destination</h1> 17 <h1>Destination</h1>
18 <select id="printer-list"></select> 18 <select id="printer-list"></select>
19 <div id="buttons"> 19 <div id="buttons">
20 <button id="print-button" i18n-content="printButton" disabled></button> 20 <button id="print-button" i18n-content="printButton" disabled></button>
21 <button id="cancel-button" i18n-content="cancelButton"></button> 21 <button id="cancel-button" i18n-content="cancelButton"></button>
22 </div> 22 </div>
23 </div> 23 </div>
24 24
25 <section> 25 <section>
26 <h3>Pages</h3> 26 <h3>Pages</h3>
27 <div> 27 <div>
28 <input id="pages" type="textbox"></input> 28 <input id="pages" type="text"></input>
29 <label> 29 <label>
30 <input id="all-pages" type="checkbox"> 30 <input id="all-pages" type="checkbox">
31 <span i18n-content="optionAllPages"></span> 31 <span i18n-content="optionAllPages"></span>
32 </label> 32 </label>
33 <div> 33 <div>
34 <label> 34 <label>
35 <input id="two-sided" type="checkbox"> 35 <input id="two-sided" type="checkbox">
36 <span i18n-content="optionTwoSided"></span> 36 <span i18n-content="optionTwoSided"></span>
37 </label> 37 </label>
38 </div> 38 </div>
39 </div> 39 </div>
40 </section> 40 </section>
41 41
42 <section> 42 <section>
43 <h3>Copies</h3> 43 <h3>Copies</h3>
44 <div> 44 <div>
45 <input id="copies" type="textbox"></input> 45 <input id="copies" type="text" value="1"></input>
46 <div> 46 <div>
47 <label> 47 <label>
48 <input id="collate" type="checkbox"> 48 <input id="collate" type="checkbox">
49 <span i18n-content="optionCollate"></span> 49 <span i18n-content="optionCollate"></span>
50 </label> 50 </label>
51 </div> 51 </div>
52 </div> 52 </div>
53 </section> 53 </section>
54 54
55 <section> 55 <section>
56 <h3>Layout</h3> 56 <h3>Layout</h3>
57 <div> 57 <div>
58 <select id="layout"> 58 <select id="layout">
59 <option i18n-content="optionPortrait"></option> 59 <option value="0" i18n-content="optionPortrait"></option>
60 <option i18n-content="optionLandscape"></option> 60 <option value="1" i18n-content="optionLandscape"></option>
61 </select> 61 </select>
62 </div> 62 </div>
63 </section> 63 </section>
64 64
65 <section> 65 <section>
66 <h3>Color</h3> 66 <h3>Color</h3>
67 <div> 67 <div>
68 <select id="color"> 68 <select id="color">
69 <option i18n-content="optionColor"></option> 69 <option value="0" i18n-content="optionBw"></option>
70 <option i18n-content="optionBw"></option> 70 <option value="1" i18n-content="optionColor"></option>
71 </select> 71 </select>
72 </div> 72 </div>
73 </section> 73 </section>
74 74
75 </div> 75 </div>
76 <div id="separator"></div> 76 <div id="separator"></div>
77 <div id="mainview"> 77 <div id="mainview">
78 <p id="loading" i18n-content="loading"></p> 78 <p id="loading" i18n-content="loading"></p>
79 <p id="no-plugin" class="hidden" i18n-content="noPlugin"></p> 79 <p id="no-plugin" class="hidden" i18n-content="noPlugin"></p>
80 </div> 80 </div>
81 81
82 <script>
83 console.log('in bottom script');
84 </script>
85 </body> 82 </body>
86 </html> 83 </html>
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/browser/resources/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698