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

Side by Side Diff: samples-dev/swarm/ConfigHintDialog.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « samples-dev/swarm/CannedData.dart ('k') | samples-dev/swarm/DataSource.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of swarmlib; 5 part of swarmlib;
6 6
7 /** A placeholder dialog that just passes the buck to Reader on feed 7 /** A placeholder dialog that just passes the buck to Reader on feed
8 configuration. */ 8 configuration. */
9 class ConfigHintDialog extends DialogView { 9 class ConfigHintDialog extends DialogView {
10 CompositeView _parent; 10 CompositeView _parent;
11 Function _doneHandler; 11 Function _doneHandler;
12 12
13 factory ConfigHintDialog(CompositeView parent, Function doneHandler) { 13 factory ConfigHintDialog(CompositeView parent, Function doneHandler) {
14 View content = ConfigHintDialog.makeContent(); 14 View content = ConfigHintDialog.makeContent();
15 return new ConfigHintDialog._impl(parent, doneHandler, content); 15 return new ConfigHintDialog._impl(parent, doneHandler, content);
16 } 16 }
17 17
18 ConfigHintDialog._impl(this._parent, this._doneHandler, View content) 18 ConfigHintDialog._impl(this._parent, this._doneHandler, View content)
19 : super('Feed configuration', '', content); 19 : super('Feed configuration', '', content);
20 20
21 void onDone() { _doneHandler(); } 21 void onDone() {
22 _doneHandler();
23 }
22 24
23 static View makeContent() { 25 static View makeContent() {
24 return new View.html( 26 return new View.html('''
25 '''
26 <div> 27 <div>
27 Add or remove feeds in 28 Add or remove feeds in
28 <a href="https://www.google.com/reader" target="_blank"> 29 <a href="https://www.google.com/reader" target="_blank">
29 Google Reader</a>'s "Subscriptions". 30 Google Reader</a>'s "Subscriptions".
30 Then come back here and click "Done" and we'll load your updated 31 Then come back here and click "Done" and we'll load your updated
31 list of subscriptions. 32 list of subscriptions.
32 </div> 33 </div>
33 '''); 34 ''');
34 } 35 }
35 } 36 }
OLDNEW
« no previous file with comments | « samples-dev/swarm/CannedData.dart ('k') | samples-dev/swarm/DataSource.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698