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

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

Issue 1269923003: Plumb notification action index for desktop SW notificationclick (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@actions
Patch Set: Created 5 years, 4 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 // Persistent id of this notification in the notification database. To be 28 // Persistent id of this notification in the notification database. To be
29 // used when retrieving all information associated with it. 29 // used when retrieving all information associated with it.
30 int64_t persistent_notification_id() const { 30 int64_t persistent_notification_id() const {
31 return persistent_notification_id_; 31 return persistent_notification_id_;
32 } 32 }
33 33
34 // NotificationDelegate implementation. 34 // NotificationDelegate implementation.
35 void Display() override; 35 void Display() override;
36 void Close(bool by_user) override; 36 void Close(bool by_user) override;
37 void Click() override; 37 void Click() override;
38 void ButtonClick(int button_index) override;
38 std::string id() const override; 39 std::string id() const override;
39 40
40 protected: 41 protected:
41 ~PersistentNotificationDelegate() override; 42 ~PersistentNotificationDelegate() override;
42 43
43 private: 44 private:
44 content::BrowserContext* browser_context_; 45 content::BrowserContext* browser_context_;
45 int64_t persistent_notification_id_; 46 int64_t persistent_notification_id_;
46 GURL origin_; 47 GURL origin_;
47 48
48 std::string id_; 49 std::string id_;
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_ 52 #endif // CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698