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

Side by Side Diff: pkg/dartdoc/lib/src/client/client-live-nav.dart

Issue 10919260: Reorganize dartdoc to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/dartdoc/lib/mirrors_util.dart ('k') | pkg/dartdoc/lib/src/client/client-shared.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** Provides client-side behavior for generated docs. */ 5 /** Provides client-side behavior for generated docs. */
6 #library('client-live-nav'); 6 #library('client-live-nav');
7 7
8 #import('dart:html'); 8 #import('dart:html');
9 #import('dart:json'); 9 #import('dart:json');
10 #import('../../lib/compiler/implementation/source_file.dart'); 10 #import('../../../../../lib/compiler/implementation/source_file.dart');
11 #import('classify.dart'); 11 // TODO(rnystrom): Use "package:" URL (#4968).
12 #import('markdown.dart', prefix: 'md'); 12 #import('../../classify.dart');
13 #import('../../markdown.dart', prefix: 'md');
13 14
15 // TODO(rnystrom): Use "package:" URL (#4968).
14 #source('dropdown.dart'); 16 #source('dropdown.dart');
15 #source('search.dart'); 17 #source('search.dart');
16 #source('nav.dart'); 18 #source('../dartdoc/nav.dart');
17 #source('client-shared.dart'); 19 #source('client-shared.dart');
18 20
19 main() { 21 main() {
20 setupLocation(); 22 setupLocation();
21 23
22 enableCodeBlocks(); 24 enableCodeBlocks();
23 25
24 // Request the navigation data so we can build the HTML for it. 26 // Request the navigation data so we can build the HTML for it.
25 new HttpRequest.get('${prefix}nav.json', (request) { 27 new HttpRequest.get('${prefix}nav.json', (request) {
26 var json = JSON.parse(request.responseText); 28 var json = JSON.parse(request.responseText);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 92 }
91 html.add('</li>'); 93 html.add('</li>');
92 } 94 }
93 95
94 html.add('<ul class="icon">'); 96 html.add('<ul class="icon">');
95 types.forEach((typeInfo) => 97 types.forEach((typeInfo) =>
96 writeType(kindToString(typeInfo[KIND]), typeInfo)); 98 writeType(kindToString(typeInfo[KIND]), typeInfo));
97 exceptions.forEach((typeInfo) => writeType('exception', typeInfo)); 99 exceptions.forEach((typeInfo) => writeType('exception', typeInfo));
98 html.add('</ul>'); 100 html.add('</ul>');
99 } 101 }
OLDNEW
« no previous file with comments | « pkg/dartdoc/lib/mirrors_util.dart ('k') | pkg/dartdoc/lib/src/client/client-shared.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698