Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: polymer_0.5.0/bower_components/paper-dialog/paper-dialog-base.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_0.5.0/bower_components/paper-dialog/paper-dialog-base.html
diff --git a/polymer_0.5.0/bower_components/paper-dialog/paper-dialog-base.html b/polymer_0.5.0/bower_components/paper-dialog/paper-dialog-base.html
new file mode 100644
index 0000000000000000000000000000000000000000..1a5adf234662dba02a5f22741c16233db48a677f
--- /dev/null
+++ b/polymer_0.5.0/bower_components/paper-dialog/paper-dialog-base.html
@@ -0,0 +1,81 @@
+<!--
+Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
+Code distributed by Google as part of the polymer project is also
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
+-->
+
+<!--
+
+Material Design: <a href="http://www.google.com/design/spec/components/dialogs.html">Dialogs</a>
+
+`paper-dialog-base` is a base class used to implement Material Design styled
+dialogs.
+
+@group Paper Elements
+@element paper-dialog-base
+@extends core-overlay
+@homepage github.io
+@status unstable
+-->
+<link href="../polymer/polymer.html" rel="import">
+<link href="../core-overlay/core-overlay.html" rel="import">
+<link href="../core-transition/core-transition-css.html" rel="import">
+
+<polymer-element name="paper-dialog-base" extends="core-overlay" role="dialog" on-core-overlay-open="{{openAction}}">
+
+<script>
+
+ Polymer({
+
+ publish: {
+
+ /**
+ * The title of the dialog.
+ *
+ * @attribute heading
+ * @type string
+ * @default ''
+ */
+ heading: '',
+
+ /**
+ * @attribute transition
+ * @type string
+ * @default ''
+ */
+ transition: '',
+
+ /**
+ * @attribute layered
+ * @type boolean
+ * @default true
+ */
+ layered: true
+ },
+
+ ready: function() {
+ this.super();
+ this.sizingTarget = this.$.scroller;
+ },
+
+ headingChanged: function(old) {
+ var label = this.getAttribute('aria-label');
+ if (!label || label === old) {
+ this.setAttribute('aria-label', this.heading);
+ }
+ },
+
+ openAction: function() {
+ if (this.$.scroller.scrollTop) {
+ this.$.scroller.scrollTop = 0;
+ }
+ }
+
+ });
+
+</script>
+
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698