Initial semi-working windows implementation
This commit is contained in:
parent
5dd4d6a961
commit
7c38633d1e
9 changed files with 833 additions and 18 deletions
25
atom/browser/ui/win/toast_handler.h
Normal file
25
atom/browser/ui/win/toast_handler.h
Normal 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_
|
Loading…
Add table
Add a link
Reference in a new issue