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.
11 is: 'viewer-zoom-toolbar',
21 hidden: true // Toolbars are explicitly shown once the plugin is ready.
24 fitToggle: function() {
25 if (this.$['fit-button'].activeIndex == FIT_TO_WIDTH)
26 this.fire('fit-to-width');
28 this.fire('fit-to-page');
36 this.fire('zoom-out');
42 this.$['fit-button'].show();
43 this.$['zoom-in-button'].show();
44 this.$['zoom-out-button'].show();
50 this.visible_ = false;
51 this.$['fit-button'].hide();
52 this.$['zoom-in-button'].hide();
53 this.$['zoom-out-button'].hide();