Extract some logic from SuggestAppsDialog to a separate class
commit7ec37f259f276209cad16730050b6db849ea7824
authortbarzic <tbarzic@chromium.org>
Tue, 7 Apr 2015 17:31:57 +0000 (7 10:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 17:32:31 +0000 (7 17:32 +0000)
treea6c9fff892e0f324f4c3da7337573d1baf774e16
parent68411116575f7afcaf5491ed893019da12b649ae
Extract some logic from SuggestAppsDialog to a separate class

This extracts logic that handles loading, initializing and handling
requests from web store widget out of SuggestAppsDialog.
What's left in SuggestAppsDialog is logic for showing/hiding the dialog
modal to file manager, and handling results from the widget.

The goal is to eventually remove the newly created class out of
ui/file_manager so it can be used to show Web Store widget for purposes
not related to file manager.

BUG=439448

Review URL: https://codereview.chromium.org/1068653002

Cr-Commit-Position: refs/heads/master@{#324064}
ui/file_manager/file_manager/foreground/css/file_manager.css
ui/file_manager/file_manager/foreground/js/compiled_resources.gyp
ui/file_manager/file_manager/foreground/js/cws_widget_container.js [new file with mode: 0644]
ui/file_manager/file_manager/foreground/js/file_manager_commands.js
ui/file_manager/file_manager/foreground/js/main_scripts.js
ui/file_manager/file_manager/foreground/js/task_controller.js
ui/file_manager/file_manager/foreground/js/ui/suggest_apps_dialog.js
ui/file_manager/file_manager/main.html
ui/file_manager/integration_tests/file_manager/suggest_app_dialog.js