summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/pdf/elements/viewer-error-screen.js
blob: 082220a4c929987395bfbe18f26cb9c4949561e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Polymer({
  is: 'viewer-error-screen',
  properties: {
    reloadFn: Function,

    strings: Object,
  },

  show: function() {
    /** @type {!CrDialogElement} */ (this.$.dialog).showModal();
  },

  reload: function() {
    if (this.reloadFn) {
      this.reloadFn();
    }
  }
});