Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/notifications/notification_platform_bridge_linux.h

Issue 2794103002: Add initial support for native Linux desktop notifications (Closed)
Patch Set: Rebase, address peter@'s comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
Lei Zhang 2017/04/04 07:47:21 It's 2017. :)
Tom (Use chromium acct) 2017/04/04 21:47:11 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
7
8 #include <gio/gio.h>
9
10 #include "base/macros.h"
11 #include "chrome/browser/notifications/notification_platform_bridge.h"
12 #include "ui/message_center/message_center.h"
13
14 class NotificationPlatformBridgeLinux : public NotificationPlatformBridge {
15 public:
16 NotificationPlatformBridgeLinux(message_center::MessageCenter* message_center,
17 GDBusProxy* notification_proxy);
18
19 ~NotificationPlatformBridgeLinux() override;
20
21 // Overridden from NotificationPlatformBridge.
Lei Zhang 2017/04/04 07:47:21 Just // NotificationPlatformBridge: will suffice.
Tom (Use chromium acct) 2017/04/04 21:47:10 Done.
22 void Display(NotificationCommon::Type notification_type,
23 const std::string& notification_id,
24 const std::string& profile_id,
25 bool is_incognito,
26 const Notification& notification) override;
27 void Close(const std::string& profile_id,
28 const std::string& notification_id) override;
29 void GetDisplayed(
30 const std::string& profile_id,
31 bool incognito,
32 const DisplayedNotificationsCallback& callback) const override;
33
34 private:
35 message_center::MessageCenter* message_center_;
36
37 GDBusProxy* notification_proxy_;
Lei Zhang 2017/04/04 07:47:21 GDBusProxy* const, or maybe use ScopedGObject?
Tom (Use chromium acct) 2017/04/04 21:47:11 Done.
38
39 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeLinux);
40 };
41
42 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698