blob: 79ac93ebffe6e77057bb525b6bcc6a057183d2c4 [file] [log] [blame]
miguelg3cc06ec2016-06-30 09:14:091// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
6#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
7
8namespace content {
9class BrowserContext;
10} // namespace content
11
12// Shared functionality for both in page and persistent notification
13class NotificationCommon {
14 public:
15 // Things as user can do to a notification.
16 enum Operation {
17 CLICK = 0,
18 CLOSE = 1,
miguelg4ca5df82016-07-04 16:08:3619 SETTINGS = 2,
20 OPERATION_MAX = SETTINGS
miguelg3cc06ec2016-06-30 09:14:0921 };
22
23 // Open the Notification settings screen when clicking the right button.
24 // TODO(miguelg) have it take a Profile instead once NotificationObjectProxy
25 // is updated.
26 static void OpenNotificationSettings(
27 content::BrowserContext* browser_context);
28};
29
30#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_