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

Unified Diff: lib/paper_ripple_behavior.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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
« no previous file with comments | « lib/paper_ripple.dart ('k') | lib/paper_ripple_behavior.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/paper_ripple_behavior.dart
diff --git a/lib/paper_ripple_behavior.dart b/lib/paper_ripple_behavior.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4d56552bd66a62b6b640ca845be1125c96832363
--- /dev/null
+++ b/lib/paper_ripple_behavior.dart
@@ -0,0 +1,43 @@
+// DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update`
+
+/// Dart API for the polymer element `paper_ripple_behavior`.
+@HtmlImport('paper_ripple_behavior_nodart.html')
+library polymer_elements.lib.src.paper_behaviors.paper_ripple_behavior;
+
+import 'dart:html';
+import 'dart:js' show JsArray, JsObject;
+import 'package:web_components/web_components.dart';
+import 'package:polymer_interop/polymer_interop.dart';
+import 'paper_ripple.dart';
+
+/// `Polymer.PaperRippleBehavior` dynamically implements a ripple
+/// when the element has focus via pointer or keyboard.
+///
+/// NOTE: This behavior is intended to be used in conjunction with and after
+/// `Polymer.IronButtonState` and `Polymer.IronControlState`.
+@BehaviorProxy(const ['Polymer', 'PaperRippleBehavior'])
+abstract class PaperRippleBehavior implements CustomElementProxyMixin {
+
+ /// If true, the element will not produce a ripple effect when interacted
+ /// with via the pointer.
+ bool get noink => jsElement[r'noink'];
+ set noink(bool value) { jsElement[r'noink'] = value; }
+
+ /// Ensures this element contains a ripple effect. For startup efficiency
+ /// the ripple effect is dynamically on demand when needed.
+ /// [opt_triggeringEvent]: (optional) event that triggered the
+ /// ripple.
+ ensureRipple(opt_triggeringEvent) =>
+ jsElement.callMethod('ensureRipple', [opt_triggeringEvent]);
+
+ /// Returns the `<paper-ripple>` element used by this element to create
+ /// ripple effects. The element's ripple is created on demand, when
+ /// necessary, and calling this method will force the
+ /// ripple to be created.
+ getRipple() =>
+ jsElement.callMethod('getRipple', []);
+
+ /// Returns true if this element currently contains a ripple effect.
+ bool hasRipple() =>
+ jsElement.callMethod('hasRipple', []);
+}
« no previous file with comments | « lib/paper_ripple.dart ('k') | lib/paper_ripple_behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698