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

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

Issue 342513004: Visual refresh of allocation profile page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: runtime/bin/vmservice/client/lib/src/elements/collapsible_content.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/collapsible_content.dart b/runtime/bin/vmservice/client/lib/src/elements/collapsible_content.dart
deleted file mode 100644
index babd9017e6f071f1e6df44d30c2163dac07a0358..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/client/lib/src/elements/collapsible_content.dart
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013, 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 collapsible_content_element;
-
-import 'dart:html';
-import 'package:polymer/polymer.dart';
-import 'observatory_element.dart';
-
-/// An element which conditionally displays its children elements.
-@CustomTag('collapsible-content')
-class CollapsibleContentElement extends ObservatoryElement {
- static const String _openIconClass = 'glyphicon glyphicon-chevron-down';
- static const String _closeIconClass = 'glyphicon glyphicon-chevron-up';
-
- @observable String iconClass = _openIconClass;
- @observable String displayValue = 'none';
-
- bool _collapsed = true;
- bool get collapsed => _collapsed;
- set collapsed(bool r) {
- _collapsed = r;
- _refresh();
- }
-
- CollapsibleContentElement.created() : super.created();
-
- void enteredView() {
- super.enteredView();
- _refresh();
- }
-
- void toggleDisplay(Event e, var detail, Node target) {
- collapsed = !collapsed;
- _refresh();
- }
-
-
-
- void _refresh() {
- if (_collapsed) {
- iconClass = _openIconClass;
- displayValue = 'none';
- } else {
- iconClass = _closeIconClass;
- displayValue = 'block';
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698