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

Unified Diff: dart/samples/swarm/swarm_ui_lib/view/SliderMenu.dart

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | dart/samples/swarm/test/swarm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/samples/swarm/swarm_ui_lib/view/SliderMenu.dart
===================================================================
--- dart/samples/swarm/swarm_ui_lib/view/SliderMenu.dart (revision 30098)
+++ dart/samples/swarm/swarm_ui_lib/view/SliderMenu.dart (working copy)
@@ -60,7 +60,7 @@
// Ideally, enterDocument should do nothing more than redecorate a view
// and perhaps calculating the correct child sizes for edge cases that
// cannot be handled by the browser layout engine.
- selectItem(node.query('.sm-item'), false);
+ selectItem(node.querySelector('.sm-item'), false);
// TODO(mattsh), abstract this somehow into a touch click mixin
if (Device.supportsTouch) {
@@ -118,7 +118,7 @@
void selectItemText(Element item) {
// unselect all menu items
- for (final sliderItem in node.queryAll('.sm-item')) {
+ for (final sliderItem in node.querySelectorAll('.sm-item')) {
sliderItem.classes.remove('sel');
}
@@ -138,14 +138,14 @@
}
void selectNext(bool animate) {
- final result = node.query('.sm-item.sel').nextElementSibling;
+ final result = node.querySelector('.sm-item.sel').nextElementSibling;
if (result != null) {
selectItem(result, animate);
}
}
void selectPrevious(bool animate) {
- final result = node.query('.sm-item.sel').previousElementSibling;
+ final result = node.querySelector('.sm-item.sel').previousElementSibling;
if (result != null) {
selectItem(result, animate);
}
@@ -171,7 +171,7 @@
// find the slider filler (the div element to the left of the
// triangle) set its width the push the triangle to where we want it.
String duration = animate ? '.3s' : '0s';
- final triangle = node.query('.sm-triangle');
+ final triangle = node.querySelector('.sm-triangle');
triangle.style.transitionDuration = duration;
FxUtil.setWebkitTransform(triangle, x, 0);
}
« no previous file with comments | « dart/samples/swarm/swarm_ui_lib/view/PagedViews.dart ('k') | dart/samples/swarm/test/swarm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698