| Index: dashboard/dashboard/elements/overlay-message-bar.html
|
| diff --git a/dashboard/dashboard/elements/overlay-message-bar.html b/dashboard/dashboard/elements/overlay-message-bar.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fcd61455d8d26abf0e388964003afa925b8d6d4c
|
| --- /dev/null
|
| +++ b/dashboard/dashboard/elements/overlay-message-bar.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE html>
|
| +<!--
|
| +Copyright 2016 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-element name="overlay-message-bar"
|
| + extends="overlay-message"
|
| + attributes="text autoCloseDisabled transition duration opened
|
| + maxWidth delay">
|
| +
|
| + <script>
|
| + 'use strict';
|
| +
|
| + (function() {
|
| + var globalMessageBar = null;
|
| +
|
| + Polymer('overlay-message-bar', {
|
| + created: function() {
|
| + if (!globalMessageBar) {
|
| + globalMessageBar = this;
|
| + }
|
| + },
|
| +
|
| + updateContent: function(content, config) {
|
| + globalMessageBar.super([content, config]);
|
| + },
|
| + });
|
| + })();
|
| + </script>
|
| +</polymer-element>
|
|
|