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

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

Issue 2941743002: Revert of Deprecate native and extension notification delegates. (Closed)
Patch Set: Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WEB_NOTIFICATION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_WEB_NOTIFICATION_DELEGATE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_WEB_NOTIFICATION_DELEGATE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_WEB_NOTIFICATION_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 16 matching lines...) Expand all
27 WebNotificationDelegate(NotificationCommon::Type notification_type, 27 WebNotificationDelegate(NotificationCommon::Type notification_type,
28 Profile* profile, 28 Profile* profile,
29 const std::string& notification_id, 29 const std::string& notification_id,
30 const GURL& origin); 30 const GURL& origin);
31 31
32 // NotificationDelegate implementation. 32 // NotificationDelegate implementation.
33 std::string id() const override; 33 std::string id() const override;
34 bool SettingsClick() override; 34 bool SettingsClick() override;
35 bool ShouldDisplaySettingsButton() override; 35 bool ShouldDisplaySettingsButton() override;
36 bool ShouldDisplayOverFullscreen() const override; 36 bool ShouldDisplayOverFullscreen() const override;
37 void Display() override;
37 void Close(bool by_user) override; 38 void Close(bool by_user) override;
38 void Click() override; 39 void Click() override;
39 void ButtonClick(int button_index) override; 40 void ButtonClick(int button_index) override;
40 void ButtonClickWithReply(int button_index, 41 void ButtonClickWithReply(int button_index,
41 const base::string16& reply) override; 42 const base::string16& reply) override;
42 43
43 protected: 44 protected:
44 ~WebNotificationDelegate() override; 45 ~WebNotificationDelegate() override;
45 const GURL& origin() { return origin_; } 46 const GURL& origin() { return origin_; }
46 47
47 private: 48 private:
48 NotificationCommon::Type notification_type_; 49 NotificationCommon::Type notification_type_;
49 Profile* profile_; 50 Profile* profile_;
50 std::string notification_id_; 51 std::string notification_id_;
51 GURL origin_; 52 GURL origin_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(WebNotificationDelegate); 54 DISALLOW_COPY_AND_ASSIGN(WebNotificationDelegate);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_NOTIFICATIONS_WEB_NOTIFICATION_DELEGATE_H_ 57 #endif // CHROME_BROWSER_NOTIFICATIONS_WEB_NOTIFICATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698