2015-12-25 02:16:07 +00:00
|
|
|
// Copyright (c) 2015 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2017-05-18 22:58:12 +00:00
|
|
|
#include "brightray/browser/notification_delegate_adapter.h"
|
2015-12-25 02:16:07 +00:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
NotificationDelegateAdapter::NotificationDelegateAdapter(
|
2016-05-23 01:59:07 +00:00
|
|
|
std::unique_ptr<content::DesktopNotificationDelegate> delegate)
|
2016-03-08 11:59:29 +00:00
|
|
|
: delegate_(std::move(delegate)) {
|
2015-12-25 02:16:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NotificationDelegateAdapter::~NotificationDelegateAdapter() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void NotificationDelegateAdapter::NotificationDestroyed() {
|
|
|
|
delete this;
|
|
|
|
}
|
|
|
|
|
|
|
|
void NotificationDelegateAdapter::NotificationDisplayed() {
|
|
|
|
delegate_->NotificationDisplayed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void NotificationDelegateAdapter::NotificationClosed() {
|
|
|
|
delegate_->NotificationClosed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void NotificationDelegateAdapter::NotificationClick() {
|
|
|
|
delegate_->NotificationClick();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace brightray
|