Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / chrome / browser / resources / pdf / elements / viewer-pdf-toolbar / viewer-pdf-toolbar.html
blob8cba44f130e92a89f53f2747c17a38f5487b713e
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-shadow-flex-layout.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/image-icons.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/slide-down-animation.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/slide-up-animation.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animation-runner-behavior.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-material.html">
10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-progress.html">
11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toolbar/paper-toolbar.html">
12 <link rel="import" href="../viewer-bookmarks-content/viewer-bookmarks-content.html">
13 <link rel="import" href="../viewer-page-selector/viewer-page-selector.html">
14 <link rel="import" href="../viewer-toolbar-dropdown/viewer-toolbar-dropdown.html">
16 <dom-module id="viewer-pdf-toolbar">
17 <link rel="import" type="css" href="viewer-pdf-toolbar.css">
18 <template>
19 <paper-material class="fit"></paper-material>
21 <paper-progress value="{{loadProgress}}"></paper-progress>
23 <paper-toolbar>
24 <div id="aligner" class="horizontal layout center">
25 <span id="title" class="invisible flex-5" title="{{docTitle}}">
26 <span>{{docTitle}}</span>
27 </span>
29 <div class="flex-1" id="pageselector-container">
30 <viewer-page-selector id="pageselector" class="invisible"
31 doc-length="{{docLength}}" page-no="{{pageNo}}">
32 </viewer-page-selector>
33 </div>
35 <div id="buttons" class="invisible flex-5">
36 <!-- TODO(tsergeant): "Bookmarks" should be localized. -->
37 <viewer-toolbar-dropdown id="bookmarks"
38 hidden$="[[!bookmarks]]"
39 header="Bookmarks"
40 open-icon="bookmark"
41 closed-icon="bookmark-border">
42 <viewer-bookmarks-content bookmarks="{{bookmarks}}">
43 </viewer-bookmarks-content>
44 </viewer-toolbar-dropdown>
45 <paper-icon-button icon="image:rotate-right"
46 on-click="rotateRight"></paper-icon-button>
47 <!-- TODO(tsergeant): Replace this placeholder with a more useful
48 button. -->
49 <paper-icon-button icon="image:rotate-left"
50 on-click="rotateLeft"></paper-icon-button>
51 <paper-icon-button icon="save"
52 on-click="save"></paper-icon-button>
53 <paper-icon-button icon="print"
54 on-click="print"></paper-icon-button>
55 </div>
56 </div>
57 </paper-toolbar>
58 </template>
59 </dom-module>
60 <script src="viewer-pdf-toolbar.js"></script>