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

Side by Side Diff: content/public/browser/notification_event_dispatcher.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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_EVENT_DISPATCHER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_EVENT_DISPATCHER_H_
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_EVENT_DISPATCHER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_EVENT_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 using NotificationClickDispatchCompleteCallback = 30 using NotificationClickDispatchCompleteCallback =
31 base::Callback<void(PersistentNotificationStatus)>; 31 base::Callback<void(PersistentNotificationStatus)>;
32 32
33 // Dispatches the "notificationclick" event on the Service Worker associated 33 // Dispatches the "notificationclick" event on the Service Worker associated
34 // with |persistent_notification_id| belonging to |origin|. The |callback| 34 // with |persistent_notification_id| belonging to |origin|. The |callback|
35 // will be invoked when it's known whether the event successfully executed. 35 // will be invoked when it's known whether the event successfully executed.
36 virtual void DispatchNotificationClickEvent( 36 virtual void DispatchNotificationClickEvent(
37 BrowserContext* browser_context, 37 BrowserContext* browser_context,
38 int64_t persistent_notification_id, 38 int64_t persistent_notification_id,
39 const GURL& origin, 39 const GURL& origin,
40 int action_index,
40 const NotificationClickDispatchCompleteCallback& 41 const NotificationClickDispatchCompleteCallback&
41 dispatch_complete_callback) = 0; 42 dispatch_complete_callback) = 0;
42 43
43 protected: 44 protected:
44 virtual ~NotificationEventDispatcher() {} 45 virtual ~NotificationEventDispatcher() {}
45 }; 46 };
46 47
47 } // namespace content 48 } // namespace content
48 49
49 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_EVENT_DISPATCHER_H_ 50 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_EVENT_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698