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

Unified Diff: chrome/browser/resources/pdf/index.in.html

Issue 110723007: Add the viewer toolbar to the PDF extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/browser/resources/pdf/index.js ('k') | chrome/browser/resources/pdf/polymer_loader.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/index.in.html
diff --git a/chrome/browser/resources/pdf/index.in.html b/chrome/browser/resources/pdf/index.in.html
new file mode 100644
index 0000000000000000000000000000000000000000..fe81e1bb9fb86cbaaf48d1b21d5cc3a663beacd6
--- /dev/null
+++ b/chrome/browser/resources/pdf/index.in.html
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML>
+<!-- NOTE: index.html/index.js are automatically generated from index.in.html
+ using the command: vulcanize --csp index.in.html -o index.html
+ index.html/index.js SHOULD NOT be modified manually.
+ TODO(raymes): Get rid of the need for vulcanize once HTMLImports is
+ working properly in polymer. -->
+<html i18n-values="dir:textdirection">
+<head>
+ <meta charset="utf-8">
+ <script src="polymer_loader.js"></script>
+ <link rel="import" href="../../../../third_party/polymer/polymer-selector/polymer-selector.html">
+ <link rel="import" href="html_office/elements/viewer-toolbar/viewer-toolbar.html">
+ <link rel="import" href="html_office/elements/viewer-button/viewer-button.html">
+ <style>
+ body {
+ background-color: #ccc;
+ margin: 0;
+ }
+ viewer-toolbar {
+ z-index: 2;
+ }
+ object {
+ z-index: 1;
+ }
+ </style>
+</head>
+<body>
+
+<viewer-toolbar>
+ <polymer-selector>
+ <viewer-button src="button_fit_page.png" latchable=true></viewer-button>
+ <viewer-button src="button_fit_width.png" latchable=true></viewer-button>
+ <viewer-button src="button_zoom_in.png"></viewer-button>
+ <viewer-button src="button_zoom_out.png"></viewer-button>
+ </polymer-selector>
+ <viewer-button src="button_save.png"></viewer-button>
+ <viewer-button src="button_print.png"></viewer-button>
+</viewer-toolbar>
+
+</body>
+<script src="pdf.js"></script>
+</html>
« no previous file with comments | « chrome/browser/resources/pdf/index.js ('k') | chrome/browser/resources/pdf/polymer_loader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698