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

Unified Diff: chrome/browser/local_discovery/privet_notifications.h

Issue 22859018: Added image and button to privet notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@privet_notifications4
Patch Set: Updated to fix conflicts with master and remove binary files Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/local_discovery/privet_notifications.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/privet_notifications.h
diff --git a/chrome/browser/local_discovery/privet_notifications.h b/chrome/browser/local_discovery/privet_notifications.h
index d0c87de334a86725627e368d7d20bae8c20df457..d8039355c99c2de408ab18804991cf405744f8ad 100644
--- a/chrome/browser/local_discovery/privet_notifications.h
+++ b/chrome/browser/local_discovery/privet_notifications.h
@@ -120,7 +120,8 @@ class PrivetNotificationService
class PrivetNotificationDelegate : public NotificationDelegate {
public:
- explicit PrivetNotificationDelegate(const std::string& device_id);
+ explicit PrivetNotificationDelegate(const std::string& device_id,
+ content::BrowserContext* profile);
// NotificationDelegate implementation.
virtual std::string id() const OVERRIDE;
@@ -129,10 +130,15 @@ class PrivetNotificationDelegate : public NotificationDelegate {
virtual void Error() OVERRIDE;
virtual void Close(bool by_user) OVERRIDE;
virtual void Click() OVERRIDE;
+ virtual void ButtonClick(int button_index) OVERRIDE;
+
private:
+ void OpenTab(const GURL& url);
+
virtual ~PrivetNotificationDelegate();
std::string device_id_;
+ content::BrowserContext* profile_;
};
} // namespace local_discovery
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/local_discovery/privet_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698