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

Unified Diff: lib/paper_button_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_button.dart ('k') | lib/paper_button_behavior.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/paper_button_behavior.dart
diff --git a/lib/paper_button_behavior.dart b/lib/paper_button_behavior.dart
index 75b7b286c3483640e7faa9c2b4e0a6569bfcccc9..575e981b0ce206d64fd6c57714438da4c874eca4 100644
--- a/lib/paper_button_behavior.dart
+++ b/lib/paper_button_behavior.dart
@@ -11,8 +11,15 @@ import 'package:polymer_interop/polymer_interop.dart';
import 'iron_button_state.dart';
import 'iron_a11y_keys_behavior.dart';
import 'iron_control_state.dart';
+import 'paper_ripple_behavior.dart';
@BehaviorProxy(const ['Polymer', 'PaperButtonBehavior'])
-abstract class PaperButtonBehavior implements CustomElementProxyMixin, IronButtonState, IronControlState {
+abstract class PaperButtonBehavior implements CustomElementProxyMixin, IronButtonState, IronControlState, PaperRippleBehavior {
+
+ /// The z-depth of this element, from 0-5. Setting to 0 will remove the
+ /// shadow, and each increasing number greater than 0 will be "deeper"
+ /// than the last.
+ num get elevation => jsElement[r'elevation'];
+ set elevation(num value) { jsElement[r'elevation'] = value; }
}
« no previous file with comments | « lib/paper_button.dart ('k') | lib/paper_button_behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698