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

Unified Diff: utils/dartdoc/client-shared.dart

Issue 9555013: Get dartdoc in the SDK and working correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update copyright date. Created 8 years, 10 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: utils/dartdoc/client-shared.dart
diff --git a/utils/dartdoc/client-shared.dart b/utils/dartdoc/client-shared.dart
deleted file mode 100644
index 1a9eff28c42d28a5c467ef6a4715faf9f3b4ec8a..0000000000000000000000000000000000000000
--- a/utils/dartdoc/client-shared.dart
+++ /dev/null
@@ -1,33 +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.
-
-// Code shared between the different client-side libraries.
-
-/**
- * Finds all code blocks and makes them toggleable. Syntax highlights each
- * code block the first time it's shown.
- */
-enableCodeBlocks() {
- for (var elem in document.queryAll('.method, .field')) {
- var showCode = elem.query('.show-code');
-
- // Skip it if we don't have a code link. Will happen if source code is
- // disabled.
- if (showCode == null) continue;
-
- var pre = elem.query('pre.source');
- showCode.on.click.add((e) {
- if (pre.classes.contains('expanded')) {
- pre.classes.remove('expanded');
- } else {
- // Syntax highlight.
- if (!pre.classes.contains('formatted')) {
- pre.innerHTML = classifySource(new frog.SourceFile('', pre.text));
- pre.classes.add('formatted');
- };
- pre.classes.add('expanded');
- }
- });
- }
-}

Powered by Google App Engine
This is Rietveld 408576698