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

Side by Side Diff: content/public/browser/desktop_notification_delegate.h

Issue 993343006: [CleanUp] Remove parameter |by_user| in NotificationClosed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // A delegate used by ContentBrowserClient::ShowDesktopNotification to report 10 // A delegate used by ContentBrowserClient::ShowDesktopNotification to report
11 // the result of a desktop notification. 11 // the result of a desktop notification.
12 class DesktopNotificationDelegate { 12 class DesktopNotificationDelegate {
13 public: 13 public:
14 virtual ~DesktopNotificationDelegate() {} 14 virtual ~DesktopNotificationDelegate() {}
15 15
16 // The notification was shown. 16 // The notification was shown.
17 virtual void NotificationDisplayed() = 0; 17 virtual void NotificationDisplayed() = 0;
18 18
19 // The notification was closed. 19 // The notification was closed.
20 virtual void NotificationClosed(bool by_user) = 0; 20 virtual void NotificationClosed() = 0;
21 21
22 // The user clicked on the notification. 22 // The user clicked on the notification.
23 virtual void NotificationClick() = 0; 23 virtual void NotificationClick() = 0;
24 }; 24 };
25 25
26 } // namespace content 26 } // namespace content
27 27
28 #endif // CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_ 28 #endif // CONTENT_PUBLIC_BROWSER_DESKTOP_NOTIFICATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698