refactor: rename the atom directory to shell
This commit is contained in:
parent
4575a4aae3
commit
d7f07e8a80
631 changed files with 0 additions and 0 deletions
55
shell/browser/notifications/win/notification_presenter_win.h
Normal file
55
shell/browser/notifications/win/notification_presenter_win.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||||
// Copyright (c) 2015 Felix Rieseberg <feriese@microsoft.com> and
|
||||
// Jason Poon <jason.poon@microsoft.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.
|
||||
|
||||
// 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 ATOM_BROWSER_NOTIFICATIONS_WIN_NOTIFICATION_PRESENTER_WIN_H_
|
||||
#define ATOM_BROWSER_NOTIFICATIONS_WIN_NOTIFICATION_PRESENTER_WIN_H_
|
||||
|
||||
#include "atom/browser/notifications/notification_presenter.h"
|
||||
#include "base/files/scoped_temp_dir.h"
|
||||
#include "base/strings/string16.h"
|
||||
|
||||
class GURL;
|
||||
class SkBitmap;
|
||||
|
||||
namespace atom {
|
||||
|
||||
class NotificationPresenterWin : public NotificationPresenter {
|
||||
public:
|
||||
NotificationPresenterWin();
|
||||
~NotificationPresenterWin() override;
|
||||
|
||||
bool Init();
|
||||
|
||||
base::string16 SaveIconToFilesystem(const SkBitmap& icon, const GURL& origin);
|
||||
|
||||
private:
|
||||
Notification* CreateNotificationObject(
|
||||
NotificationDelegate* delegate) override;
|
||||
|
||||
base::ScopedTempDir temp_dir_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(NotificationPresenterWin);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_NOTIFICATIONS_WIN_NOTIFICATION_PRESENTER_WIN_H_
|
Loading…
Add table
Add a link
Reference in a new issue