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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.h

Issue 1262893006: Enable testing NotificationEvent.action (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@click_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 side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/layout_test/layout_test_notification_manager.h
diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.h b/content/shell/browser/layout_test/layout_test_notification_manager.h
index 53c59309642cf2e46ac743306bb1f2f206dde040..fdcdeb87af14accf9b1b517bf31848e95e143ff1 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.h
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.h
@@ -27,9 +27,10 @@ class LayoutTestNotificationManager : public PlatformNotificationService {
LayoutTestNotificationManager();
~LayoutTestNotificationManager() override;
- // Simulates a click on the notification titled |title|. Must be called on the
- // UI thread.
- void SimulateClick(const std::string& title);
+ // Simulates a click on the notification titled |title|. |action_index|
+ // indicates which action was clicked, or -1 if the main notification body was
+ // clicked. Must be called on the UI thread.
+ void SimulateClick(const std::string& title, int action_index);
// PlatformNotificationService implementation.
blink::WebNotificationPermission CheckPermissionOnUIThread(

Powered by Google App Engine
This is Rietveld 408576698