| OLD | NEW |
| 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 package org.chromium.chrome.browser.notifications; | 5 package org.chromium.chrome.browser.notifications; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Constants used in more than a single Notification class, e.g. intents and ext
ra names. | 8 * Constants used in more than a single Notification class, e.g. intents and ext
ra names. |
| 9 */ | 9 */ |
| 10 public class NotificationConstants { | 10 public class NotificationConstants { |
| 11 // These actions have to be synchronized with the receiver defined in Androi
dManifest.xml. | 11 // These actions have to be synchronized with the receiver defined in Androi
dManifest.xml. |
| 12 public static final String ACTION_CLICK_NOTIFICATION = | 12 public static final String ACTION_CLICK_NOTIFICATION = |
| 13 "org.chromium.chrome.browser.notifications.CLICK_NOTIFICATION"; | 13 "org.chromium.chrome.browser.notifications.CLICK_NOTIFICATION"; |
| 14 public static final String ACTION_CLOSE_NOTIFICATION = | 14 public static final String ACTION_CLOSE_NOTIFICATION = |
| 15 "org.chromium.chrome.browser.notifications.CLOSE_NOTIFICATION"; | 15 "org.chromium.chrome.browser.notifications.CLOSE_NOTIFICATION"; |
| 16 | 16 |
| 17 public static final String EXTRA_NOTIFICATION_ID = "notification_id"; | 17 public static final String EXTRA_NOTIFICATION_ID = "notification_id"; |
| 18 public static final String EXTRA_NOTIFICATION_TAG = "notification_tag"; |
| 18 | 19 |
| 19 // TODO(peter): Remove these extras once Notifications are powered by a data
base on the | 20 // TODO(peter): Remove these extras once Notifications are powered by a data
base on the |
| 20 // native side, that contains all the additional information. | 21 // native side, that contains all the additional information. |
| 21 public static final String EXTRA_NOTIFICATION_PLATFORM_ID = "notification_pl
atform_id"; | 22 public static final String EXTRA_NOTIFICATION_PLATFORM_ID = "notification_pl
atform_id"; |
| 22 public static final String EXTRA_NOTIFICATION_DATA = "notification_data"; | 23 public static final String EXTRA_NOTIFICATION_DATA = "notification_data"; |
| 23 | 24 |
| 24 /** | 25 /** |
| 25 * Unique identifier for a single sync notification. Since the notification
ID is reused, | 26 * Unique identifier for a single sync notification. Since the notification
ID is reused, |
| 26 * old notifications will be overwritten. | 27 * old notifications will be overwritten. |
| 27 */ | 28 */ |
| 28 public static final int NOTIFICATION_ID_SYNC = 1; | 29 public static final int NOTIFICATION_ID_SYNC = 1; |
| 29 /** | 30 /** |
| 30 * Unique identifier for the "Signed in to Chrome" notification. | 31 * Unique identifier for the "Signed in to Chrome" notification. |
| 31 */ | 32 */ |
| 32 public static final int NOTIFICATION_ID_SIGNED_IN = 2; | 33 public static final int NOTIFICATION_ID_SIGNED_IN = 2; |
| 34 |
| 35 /** |
| 36 * Separator used to separate the notification origin from additional data s
uch as the |
| 37 * developer specified tag. |
| 38 */ |
| 39 public static final String NOTIFICATION_TAG_SEPARATOR = ";"; |
| 33 } | 40 } |
| OLD | NEW |