| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 /** A placeholder dialog that just passes the buck to Reader on feed | |
| 6 configuration. */ | |
| 7 class ConfigHintDialog extends DialogView { | |
| 8 CompositeView _parent; | |
| 9 Function _doneHandler; | |
| 10 | |
| 11 factory ConfigHintDialog(CompositeView parent, Function doneHandler) { | |
| 12 View content = ConfigHintDialog.makeContent(); | |
| 13 return new ConfigHintDialog._impl(parent, doneHandler, content); | |
| 14 } | |
| 15 | |
| 16 ConfigHintDialog._impl(this._parent, this._doneHandler, View content) | |
| 17 : super('Feed configuration', '', content); | |
| 18 | |
| 19 void onDone() { _doneHandler(); } | |
| 20 | |
| 21 static View makeContent() { | |
| 22 return new View.html( | |
| 23 ''' | |
| 24 <div> | |
| 25 Add or remove feeds in | |
| 26 <a href="https://www.google.com/reader" target="_blank"> | |
| 27 Google Reader</a>'s "Subscriptions". | |
| 28 Then come back here and click "Done" and we'll load your updated | |
| 29 list of subscriptions. | |
| 30 </div> | |
| 31 '''); | |
| 32 } | |
| 33 } | |
| OLD | NEW |