2017-04-23 23:47:18 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2017-05-22 16:17:59 +00:00
|
|
|
#include "brightray/browser/notification_delegate.h"
|
2017-04-23 23:47:18 +00:00
|
|
|
|
|
|
|
#include "atom/browser/api/atom_api_notification.h"
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_UI_NOTIFICATION_DELEGATE_ADAPTER_H_
|
|
|
|
#define ATOM_BROWSER_UI_NOTIFICATION_DELEGATE_ADAPTER_H_
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomNotificationDelegateAdapter : public brightray::NotificationDelegate {
|
2017-04-24 03:07:42 +00:00
|
|
|
public:
|
|
|
|
atom::api::Notification* observer_;
|
|
|
|
explicit AtomNotificationDelegateAdapter(atom::api::Notification* target);
|
|
|
|
|
|
|
|
void NotificationDisplayed();
|
|
|
|
void NotificationClosed();
|
|
|
|
void NotificationClick();
|
|
|
|
void NotificationDestroyed();
|
|
|
|
void NotificationFailed();
|
2017-05-29 10:02:33 +00:00
|
|
|
void NotificationReplied(std::string reply);
|
2017-04-23 23:47:18 +00:00
|
|
|
};
|
|
|
|
|
2017-04-24 03:07:42 +00:00
|
|
|
} // namespace atom
|
2017-04-23 23:47:18 +00:00
|
|
|
|
2017-04-24 03:07:42 +00:00
|
|
|
#endif // ATOM_BROWSER_UI_NOTIFICATION_DELEGATE_ADAPTER_H_
|