notification_presenter_linux.cc 894 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Copyright (c) 2013 Patrick Reynolds <piki@github.com>. All rights reserved.
  3. // Use of this source code is governed by a BSD-style license that can be
  4. // found in the LICENSE-CHROMIUM file.
  5. #include "brightray/browser/linux/notification_presenter_linux.h"
  6. #include "brightray/browser/linux/libnotify_notification.h"
  7. namespace brightray {
  8. // static
  9. NotificationPresenter* NotificationPresenter::Create() {
  10. if (!LibnotifyNotification::Initialize())
  11. return nullptr;
  12. return new NotificationPresenterLinux;
  13. }
  14. NotificationPresenterLinux::NotificationPresenterLinux() {}
  15. NotificationPresenterLinux::~NotificationPresenterLinux() {}
  16. Notification* NotificationPresenterLinux::CreateNotificationObject(
  17. NotificationDelegate* delegate) {
  18. return new LibnotifyNotification(delegate, this);
  19. }
  20. } // namespace brightray