Initial semi-working windows implementation

This commit is contained in:
Samuel Attard 2017-04-24 00:18:31 +10:00
parent 5dd4d6a961
commit 7c38633d1e
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF
9 changed files with 833 additions and 18 deletions

View file

@ -0,0 +1,28 @@
// 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();
};
void AtomToastHandler::toastDismissed(WinToastLib::WinToastHandler::WinToastDismissalReason state) {
// observer_->OnDismissed();
};
void AtomToastHandler::toastFailed() {
// observer_->OnErrored();
};
}