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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java

Issue 942103003: Handle notification preferences intent from gear icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698