Add error and update-not-available events for auto updater.

This commit is contained in:
Cheng Zhao 2014-01-21 22:50:46 +08:00
parent df399f7c8c
commit d4e362ec89
4 changed files with 43 additions and 12 deletions

View file

@ -25,6 +25,8 @@ class AutoUpdater : public EventEmitter,
explicit AutoUpdater(v8::Handle<v8::Object> wrapper);
// AutoUpdaterDelegate implementations.
virtual void OnError(const std::string& error) OVERRIDE;
virtual void OnUpdateNotAvailable() OVERRIDE;
virtual void OnUpdateDownloaded(
const std::string& release_notes,
const std::string& release_name,