// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. part of swarmlib; /** * An informational dialog that shows keyboard shortcuts and provides a * link to the Dart language webpage. */ //TODO(efortuna): fix DialogView so it doesn't require the HTML passed to // the constructor. class HelpDialog extends DialogView { CompositeView _parent; Function _doneHandler; HelpDialog(this._parent, this._doneHandler) : super('Information', '', makeContent()); void onDone() { _doneHandler(); } static View makeContent() { return new View.html('''
'''); } static String generateTableHtml() { String cellStart = '''