Change download-related facilities to use coroutine infrastructure
commit6eee024bce80190925d7dfbafe4b8fdfd945d634
authorJeremy Maitin-Shepard <jeremy@jeremyms.com>
Thu, 24 Jan 2008 02:49:51 +0000 (23 21:49 -0500)
committerJeremy Maitin-Shepard <jeremy@jeremyms.com>
Thu, 24 Jan 2008 02:50:21 +0000 (23 21:50 -0500)
tree908399a4aeef13cf2bb3af47f3cd0b2fdda27eb6
parent7955e28e7be284a1974e74e549f03ddade8dc4f6
Change download-related facilities to use coroutine infrastructure

utils.js: Added the function get_temporary_file to avoid code duplication.

utils.js: Added create_info_panel for creating information panels like
the one shown for downloads.

download_as_temporary was changed to be a coroutine, and properly
registers with the download manager.

File name suggestion facilities were moved from save.js to
suggest-file-name.js.

process.js: The asynchronous process launching functions were changed
to be coroutines.

save.js: save_uri, save_document_as_text, and save_document_complete
replace download_uri_internal.  Interactive commands were moved to
element.js and changed to be element operations.

element.js: Many element operations now use an info panel.
content/conkeror.css
modules/content-buffer-input.js
modules/download-manager.js
modules/element.js
modules/external-editor.js
modules/process.js
modules/save.js
modules/suggest-file-name.js [new file with mode: 0644]
modules/utils.js