| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-up-animation.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/slide-up-animation.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/transform-animation.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animatio
ns/transform-animation.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
mation-runner-behavior.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
mation-runner-behavior.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-pr
ogress.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toolbar/paper-too
lbar.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toolbar/paper-too
lbar.html"> |
| 9 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 9 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 10 <link rel="import" href="../icons.html"> | 10 <link rel="import" href="../icons.html"> |
| 11 <link rel="import" href="../viewer-bookmarks-content/viewer-bookmarks-content.ht
ml"> | 11 <link rel="import" href="../viewer-bookmarks-content/viewer-bookmarks-content.ht
ml"> |
| 12 <link rel="import" href="../viewer-page-selector/viewer-page-selector.html"> | 12 <link rel="import" href="../viewer-page-selector/viewer-page-selector.html"> |
| 13 <link rel="import" href="../viewer-toolbar-dropdown/viewer-toolbar-dropdown.html
"> | 13 <link rel="import" href="../viewer-toolbar-dropdown/viewer-toolbar-dropdown.html
"> |
| 14 | 14 |
| 15 <dom-module id="viewer-pdf-toolbar"> | 15 <dom-module id="viewer-pdf-toolbar"> |
| 16 <link rel="import" type="css" href="../shared-icon-style.css"> | 16 <link rel="import" type="css" href="../shared-icon-style.css"> |
| 17 <link rel="import" type="css" href="viewer-pdf-toolbar.css"> | 17 <link rel="import" type="css" href="viewer-pdf-toolbar.css"> |
| 18 <template> | 18 <template> |
| 19 | 19 |
| 20 <paper-toolbar> | 20 <paper-toolbar> |
| 21 <div id="aligner" class="middle"> | 21 <div id="aligner" class="middle"> |
| 22 <span id="title" title="{{docTitle}}"> | 22 <span id="title" title="{{docTitle}}"> |
| 23 <span>{{docTitle}}</span> | 23 <span>{{docTitle}}</span> |
| 24 </span> | 24 </span> |
| 25 | 25 |
| 26 <div id="pageselector-container"> | 26 <div id="pageselector-container"> |
| 27 <viewer-page-selector id="pageselector" class="invisible" | 27 <viewer-page-selector id="pageselector" class="invisible" |
| 28 doc-length="{{docLength}}" page-no="{{pageNo}}"> | 28 doc-length="{{docLength}}" page-no="{{pageNo}}" |
| 29 strings="{{strings}}"> |
| 29 </viewer-page-selector> | 30 </viewer-page-selector> |
| 30 </div> | 31 </div> |
| 31 | 32 |
| 32 <div id="buttons" class="invisible"> | 33 <div id="buttons" class="invisible"> |
| 33 <paper-icon-button id="rotate-right" icon="pdf:rotate-right" | 34 <paper-icon-button id="rotate-right" icon="pdf:rotate-right" |
| 34 on-click="rotateRight" | 35 on-click="rotateRight" |
| 35 i18n-values="aria-label:tooltipRotateCW;title:tooltipRotateCW"> | 36 aria-label$="{{strings.tooltipRotateCW}}" |
| 37 title$="{{strings.tooltipRotateCW}}"> |
| 36 </paper-icon-button> | 38 </paper-icon-button> |
| 37 | 39 |
| 38 <paper-icon-button id="download" icon="cr:file-download" | 40 <paper-icon-button id="download" icon="cr:file-download" |
| 39 on-click="download" | 41 on-click="download" |
| 40 i18n-values="aria-label:tooltipDownload;title:tooltipDownload"> | 42 aria-label$="{{strings.tooltipDownload}}" |
| 43 title$="{{strings.tooltipDownload}}"> |
| 41 </paper-icon-button> | 44 </paper-icon-button> |
| 42 | 45 |
| 43 <paper-icon-button id="print" icon="cr:print" | 46 <paper-icon-button id="print" icon="cr:print" |
| 44 on-click="print" | 47 on-click="print" |
| 45 i18n-values="aria-label:tooltipPrint;title:tooltipPrint"> | 48 aria-label$="{{strings.tooltipPrint}}" |
| 49 title$="{{strings.tooltipPrint}}"> |
| 46 </paper-icon-button> | 50 </paper-icon-button> |
| 47 | 51 |
| 48 <viewer-toolbar-dropdown id="bookmarks" | 52 <viewer-toolbar-dropdown id="bookmarks" |
| 49 hidden$="[[!bookmarks.length]]" | 53 hidden$="[[!bookmarks.length]]" |
| 50 open-icon="pdf:bookmark" | 54 open-icon="pdf:bookmark" |
| 51 closed-icon="pdf:bookmark-border" | 55 closed-icon="pdf:bookmark-border" |
| 52 i18n-values="header:bookmarks"> | 56 header="{{strings.bookmarks}}"> |
| 53 <viewer-bookmarks-content bookmarks="{{bookmarks}}"> | 57 <viewer-bookmarks-content bookmarks="{{bookmarks}}"> |
| 54 </viewer-bookmarks-content> | 58 </viewer-bookmarks-content> |
| 55 </viewer-toolbar-dropdown> | 59 </viewer-toolbar-dropdown> |
| 56 </div> | 60 </div> |
| 57 </div> | 61 </div> |
| 58 <div class="bottom fit"> | 62 <div class="bottom fit"> |
| 59 <paper-progress id="progress" value="{{loadProgress}}"></paper-progress> | 63 <paper-progress id="progress" value="{{loadProgress}}"></paper-progress> |
| 60 </div> | 64 </div> |
| 61 </paper-toolbar> | 65 </paper-toolbar> |
| 62 </template> | 66 </template> |
| 63 </dom-module> | 67 </dom-module> |
| 64 <script src="viewer-pdf-toolbar.js"></script> | 68 <script src="viewer-pdf-toolbar.js"></script> |
| OLD | NEW |