summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/extensions/pack_dialog_alert.html
blob: a08e9feb5e0be768809ff52c2e54e9992bcf31b2 (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
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html">

<dom-module id="extensions-pack-dialog-alert">
  <template>
    <style include="cr-shared-style">
      .body {
        white-space: pre-wrap;
        word-break: break-word;
      }
    </style>

    <cr-dialog id="dialog" close-text="$i18n{close}">
      <div class="title" slot="title">[[title_]]</div>
      <!-- No whitespace or new-lines allowed within the div.body tag. -->
      <div class="body" slot="body">[[model.message]]</div>
      <div class="button-container" slot="button-container">
        <cr-button class$="[[getCancelButtonClass_(confirmLabel_)]]"
            on-click="onCancelTap_" hidden="[[!cancelLabel_]]">
          [[cancelLabel_]]
        </cr-button>
        <cr-button class="action-button" on-click="onConfirmTap_"
            hidden="[[!confirmLabel_]]">
          [[confirmLabel_]]
        </cr-button>
      </div>
    </cr-dialog>
  </template>
  <script src="pack_dialog_alert.js"></script>
</dom-module>