blob: 235917ca5c4fed08c953339319633b46fe74104c [file] [log] [blame]
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-announcer/iron-a11y-announcer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_toast/cr_toast.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://bookmarks/shared_style.html">
<dom-module id="bookmarks-toast-manager">
<template>
<style include="shared-style paper-button-style">
#content {
color: #fff;
display: flex;
flex: 1;
}
.collapsible {
overflow: hidden;
text-overflow: ellipsis;
}
span {
white-space: pre;
}
</style>
<cr-toast id="toast" duration="[[duration]]" role="alert">
<div id="content" class="elided-text"></div>
<paper-button id="button"
hidden$="[[!showUndo_]]"
on-click="onUndoTap_"
aria-label="$i18n{undoDescription}">
$i18n{undo}
</paper-button>
</cr-toast>
</template>
<script src="chrome://bookmarks/toast_manager.js"></script>
</dom-module>