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

Side by Side Diff: chrome/browser/resources/pdf/index.html

Issue 137663008: Implement viewporting for the out of process PDF plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 <!-- NOTE: index.html/index.js are automatically generated from index.in.html 2 <!-- NOTE: index.html/index.js are automatically generated from index.in.html
3 using the command: vulcanize --csp index.in.html -o index.html 3 using the command: vulcanize --csp index.in.html -o index.html
4 index.html/index.js SHOULD NOT be modified manually. 4 index.html/index.js SHOULD NOT be modified manually.
5 TODO(raymes): Get rid of the need for vulcanize once HTMLImports is 5 TODO(raymes): Get rid of the need for vulcanize once HTMLImports is
6 working properly in polymer. --> 6 working properly in polymer. -->
7 <html i18n-values="dir:textdirection"> 7 <html i18n-values="dir:textdirection">
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <script src="polymer_loader.js"></script> 10 <script src="polymer_loader.js"></script>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 </polymer-element> 246 </polymer-element>
247 <style> 247 <style>
248 body { 248 body {
249 background-color: #ccc; 249 background-color: #ccc;
250 margin: 0; 250 margin: 0;
251 } 251 }
252 viewer-toolbar { 252 viewer-toolbar {
253 z-index: 2; 253 z-index: 2;
254 } 254 }
255 object { 255 #plugin {
256 height: 100%;
257 position: fixed;
258 width: 100%;
256 z-index: 1; 259 z-index: 1;
257 } 260 }
261 #sizer {
262 position: absolute;
263 z-index: 0;
264 }
258 </style> 265 </style>
259 </head> 266 </head>
260 <body> 267 <body>
261 268
262 <viewer-toolbar> 269 <div id="sizer"></div>
270
271 <viewer-toolbar id="toolbar">
263 <polymer-selector> 272 <polymer-selector>
264 <viewer-button src="button_fit_page.png" latchable="true"></viewer-button> 273 <viewer-button id="fit-to-page-button" src="button_fit_page.png" latchable=" ">
265 <viewer-button src="button_fit_width.png" latchable="true"></viewer-button> 274 </viewer-button>
266 <viewer-button src="button_zoom_in.png"></viewer-button> 275 <viewer-button id="fit-to-width-button" src="button_fit_width.png" latchable ="">
267 <viewer-button src="button_zoom_out.png"></viewer-button> 276 </viewer-button>
277 <viewer-button id="zoom-in-button" src="button_zoom_in.png">
278 </viewer-button>
279 <viewer-button id="zoom-out-button" src="button_zoom_out.png">
280 </viewer-button>
268 </polymer-selector> 281 </polymer-selector>
269 <viewer-button src="button_save.png"></viewer-button> 282 <viewer-button id="save-button" src="button_save.png"></viewer-button>
270 <viewer-button src="button_print.png"></viewer-button> 283 <viewer-button id="print-button" src="button_print.png"></viewer-button>
271 </viewer-toolbar> 284 </viewer-toolbar>
272 285
273 286
274 <script src="index.js"></script> 287 <script src="index.js"></script>
275 </body> 288 </body>
276 <script src="pdf.js"></script> 289 <script src="pdf.js"></script>
277 </html> 290 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698