1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 ANIMATION_INTERVAL
= 50;
8 is
: 'viewer-zoom-toolbar',
12 * The default zoom percentage.
28 fitToPage: function() {
29 this.fire('fit-to-page');
32 fitToWidth: function() {
33 this.fire('fit-to-width');
41 this.fire('zoom-out');
47 this.$['fit-to-width-button'].show();
48 this.$['fit-to-page-button'].show();
49 this.$['zoom-in-button'].show();
50 this.$['zoom-out-button'].show();
56 this.visible_
= false;
57 this.$['fit-to-page-button'].hide();
58 this.$['fit-to-width-button'].hide();
59 this.$['zoom-in-button'].hide();
60 this.$['zoom-out-button'].hide();