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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart

Issue 201213004: Use VM tag in profile and add stack trace trie (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart b/runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart
new file mode 100644
index 0000000000000000000000000000000000000000..681e684ef3df8918b9b0dcf41ca5b87ccfd59329
--- /dev/null
+++ b/runtime/bin/vmservice/client/lib/src/elements/sliding_checkbox.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2014, 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.
+
+library sliding_checkbox_element;
+
+import 'dart:html';
+import 'package:polymer/polymer.dart';
+
+@CustomTag('sliding-checkbox')
+class SlidingCheckboxElement extends PolymerElement {
+ SlidingCheckboxElement.created() : super.created();
+ @published bool checked;
+ @published String onText;
+ @published String offText;
+
+ void change(Event e, var details, Node target) {
+ CheckboxInputElement input = shadowRoot.querySelector('#slide-switch');
+ checked = input.checked;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698