OLD | NEW |
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 } |
OLD | NEW |