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

Side by Side Diff: samples/newissues/newissues.dart

Issue 11785040: - Fixed: Issue 7765: dartdoc: use dynamic rather than Dynamic (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | « no previous file | sdk/lib/_internal/dartdoc/lib/dartdoc.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 import 'dart:async';
5 import 'dart:html'; 6 import 'dart:html';
6 import 'dart:json' as jsonlib; 7 import 'dart:json' as jsonlib;
7 8
8 /// Issue wraps JSON structure that describes a bug. 9 /// Issue wraps JSON structure that describes a bug.
9 class Issue { 10 class Issue {
10 final json; 11 final json;
11 Issue(this.json); 12 Issue(this.json);
12 13
13 void addTo(Element div) { 14 void addTo(Element div) {
14 div.children.add(new Element.tag("h2")..text = json[r"title"][r"$t"]); 15 div.children.add(new Element.tag("h2")..text = json[r"title"][r"$t"]);
(...skipping 30 matching lines...) Expand all
45 new HttpRequest.get(url, callback); 46 new HttpRequest.get(url, callback);
46 return c.future; 47 return c.future;
47 } 48 }
48 49
49 void main() { 50 void main() {
50 // Requests new issues from the Dart issue database as json. 51 // Requests new issues from the Dart issue database as json.
51 const String url = "https://code.google.com/feeds/issues/p/dart/issues/full"; 52 const String url = "https://code.google.com/feeds/issues/p/dart/issues/full";
52 const String options = "alt=json&can=new"; 53 const String options = "alt=json&can=new";
53 requestJson("$url?$options").then(processJson); 54 requestJson("$url?$options").then(processJson);
54 } 55 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698