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

Unified Diff: samples/total/client/ValuePicker.dart

Issue 10635015: Delete proxy and total samples, which have bit-rotted. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « samples/total/client/Value.dart ('k') | samples/total/client/ZoomTracker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/total/client/ValuePicker.dart
===================================================================
--- samples/total/client/ValuePicker.dart (revision 9011)
+++ samples/total/client/ValuePicker.dart (working copy)
@@ -1,35 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * A graphical picker for a set of predefined values.
- */
-class ValuePicker extends Picker {
-
- int _height;
- int _margin;
- List<String> _values;
-
- ValuePicker(DivElement root, this._values) : super("value-picker") {
- root.classes = ["value-picker", "fadeOut"];
-
- Document doc = root.document;
- Element _ul = new Element.tag("ul");
- _ul.attributes["class"] = "value-picker-ul";
- root.nodes.add(_ul);
-
- // Use the <ul> as the parent node
- setParent(_ul);
-
- int idx = 0;
- for (int i = 0; i < _values.length; i++) {
- LIElement li = new Element.tag("li");
- li.classes = ["value-picker-item", "value-picker-item-enabled"];
- li.id = "value-picker-${i}";
- li.text = _values[i];
- li.on.click.add(_clickHandler);
- _ul.nodes.add(li);
- }
- }
-}
« no previous file with comments | « samples/total/client/Value.dart ('k') | samples/total/client/ZoomTracker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698