electron/brightray/browser/linux/notification_presenter_linux.cc

31 lines
876 B
C++
Raw Normal View History

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2013-12-19 05:20:00 +00:00
// Copyright (c) 2013 Patrick Reynolds <piki@github.com>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser/linux/notification_presenter_linux.h"
2015-12-25 03:52:19 +00:00
#include "browser/linux/libnotify_notification.h"
namespace brightray {
// static
NotificationPresenter* NotificationPresenter::Create() {
2015-12-25 03:52:19 +00:00
if (!LibnotifyNotification::Initialize())
2015-12-24 02:46:08 +00:00
return nullptr;
2015-12-25 03:52:19 +00:00
return new NotificationPresenterLinux;
}
2015-12-25 03:52:19 +00:00
NotificationPresenterLinux::NotificationPresenterLinux() {
}
2013-12-19 05:05:19 +00:00
NotificationPresenterLinux::~NotificationPresenterLinux() {
}
Notification* NotificationPresenterLinux::CreateNotificationObject(
NotificationDelegate* delegate) {
return new LibnotifyNotification(delegate, this);
}
} // namespace brightray