blob: feec286f274f3519febf559e47d0b76bcca5073b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-shadow-flex-layout.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/image-icons.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/slide-down-animation.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/slide-up-animation.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animation-runner-behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-progress/paper-progress.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-toolbar/paper-toolbar.html">
<link rel="import" href="../viewer-bookmarks-content/viewer-bookmarks-content.html">
<link rel="import" href="../viewer-page-selector/viewer-page-selector.html">
<link rel="import" href="../viewer-toolbar-dropdown/viewer-toolbar-dropdown.html">
<dom-module id="viewer-pdf-toolbar">
<link rel="import" type="css" href="../shared-icon-style.css">
<link rel="import" type="css" href="viewer-pdf-toolbar.css">
<template>
<paper-toolbar>
<div id="aligner" class="middle horizontal layout center">
<span id="title" class="flex-5" title="{{docTitle}}">
<span>{{docTitle}}</span>
</span>
<div class="flex-1" id="pageselector-container">
<viewer-page-selector id="pageselector" class="invisible"
doc-length="{{docLength}}" page-no="{{pageNo}}"
strings="{{strings}}">
</viewer-page-selector>
</div>
<div id="buttons" class="invisible flex-5">
<viewer-toolbar-dropdown id="bookmarks"
hidden$="[[!bookmarks.length]]"
header="{{strings.bookmarks}}"
open-icon="bookmark"
closed-icon="bookmark-border">
<viewer-bookmarks-content bookmarks="{{bookmarks}}">
</viewer-bookmarks-content>
</viewer-toolbar-dropdown>
<paper-icon-button id="rotate-right" icon="image:rotate-right"
on-click="rotateRight" alt="{{strings.tooltipRotateCW}}"
title="{{strings.tooltipRotateCW}}">
</paper-icon-button>
<paper-icon-button id="rotate-left" icon="image:rotate-left"
on-click="rotateLeft" alt="{{strings.tooltipRotateCCW}}"
title="{{strings.tooltipRotateCCW}}">
</paper-icon-button>
<paper-icon-button id="save" icon="save"
on-click="save" alt="{{strings.tooltipSave}}"
title="{{strings.tooltipSave}}">
</paper-icon-button>
<paper-icon-button id="print" icon="print"
on-click="print" alt="{{strings.tooltipPrint}}"
title="{{strings.tooltipPrint}}">
</paper-icon-button>
</div>
</div>
<div class="bottom fit">
<paper-progress id="progress" value="{{loadProgress}}"></paper-progress>
</div>
</paper-toolbar>
</template>
</dom-module>
<script src="viewer-pdf-toolbar.js"></script>
|