// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Copyright (c) 2015 Felix Rieseberg and Jason Poon . All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. // Usage Example (JavaScript: // var windowsNotification = new Notification("Test Title", { // body: "Hi, I'm an example body. How are you?", // icon: "file:///C:/Path/To/Your/Image.png" // }); // windowsNotification.onshow = function () { console.log("Notification shown") }; // windowsNotification.onclick = function () { console.log("Notification clicked") }; // windowsNotification.onclose = function () { console.log("Notification dismissed") }; #ifndef BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_WIN_H_ #define BRIGHTRAY_BROWSER_NOTIFICATION_PRESENTER_WIN_H_ #include "base/compiler_specific.h" #include "browser/notification_presenter.h" #include namespace brightray { class NotificationPresenterWin : public NotificationPresenter { public: NotificationPresenterWin(); ~NotificationPresenterWin(); // NotificationPresenter: void ShowNotification( const content::PlatformNotificationData&, const SkBitmap& icon, scoped_ptr delegate, base::Closure* cancel_callback) override; void RemoveNotification(); private: void CancelNotification(); void DeleteNotification(); }; } // namespace brightray #endif