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,25 @@
// 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_lib.h"
#include "atom/browser/api/atom_api_notification.h"
#ifndef ATOM_BROWSER_UI_TOAST_HANDLER_H_
#define ATOM_BROWSER_UI_TOAST_HANDLER_H_
namespace atom {
class AtomToastHandler : public WinToastLib::WinToastHandler {
public:
atom::api::Notification* observer_;
AtomToastHandler(atom::api::Notification* target);
void toastActivated() override;
void toastDismissed(WinToastLib::WinToastHandler::WinToastDismissalReason state);
void toastFailed();
};
}
#endif // ATOM_BROWSER_UI_TOAST_HANDLER_H_