electron/atom/browser/ui/win/toast_handler.cc

30 lines
694 B
C++
Raw Normal View History

// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/ui/win/toast_handler.h"
#include "atom/browser/ui/win/toast_lib.h"
#include "atom/browser/api/atom_api_notification.h"
namespace atom {
AtomToastHandler::AtomToastHandler(atom::api::Notification* target) {
observer_ = target;
}
void AtomToastHandler::toastActivated() {
observer_->OnClicked();
2017-04-24 03:07:42 +00:00
}
2017-04-24 03:07:42 +00:00
void AtomToastHandler::toastDismissed(
WinToastLib::WinToastHandler::WinToastDismissalReason state) {
// observer_->OnDismissed();
2017-04-24 03:07:42 +00:00
}
void AtomToastHandler::toastFailed() {
// observer_->OnErrored();
}
2017-04-24 03:07:42 +00:00
} // namespace atom