| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   1 // Copyright 2016 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 CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_ |   5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_ | 
|   6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_ |   6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_ | 
|   7  |   7  | 
|   8 enum ContentSuggestionsNotificationImpression { |   8 enum ContentSuggestionsNotificationImpression { | 
|   9   CONTENT_SUGGESTIONS_ARTICLE = 0,  // Server-provided "articles" category. |   9   CONTENT_SUGGESTIONS_ARTICLE = 0,  // Server-provided "articles" category. | 
|  10   CONTENT_SUGGESTIONS_NONARTICLE,   // Anything else. |  10   CONTENT_SUGGESTIONS_NONARTICLE,   // Anything else. | 
|  11  |  11  | 
|  12   MAX_CONTENT_SUGGESTIONS_NOTIFICATION_IMPRESSION |  12   MAX_CONTENT_SUGGESTIONS_NOTIFICATION_IMPRESSION | 
|  13 }; |  13 }; | 
|  14  |  14  | 
 |  15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets | 
|  15 enum ContentSuggestionsNotificationAction { |  16 enum ContentSuggestionsNotificationAction { | 
|  16   CONTENT_SUGGESTIONS_TAP = 0,    // User tapped notification to open article. |  17   CONTENT_SUGGESTIONS_TAP = 0,    // User tapped notification to open article. | 
|  17   CONTENT_SUGGESTIONS_DISMISSAL,  // User swiped notification to dismiss it. |  18   CONTENT_SUGGESTIONS_DISMISSAL,  // User swiped notification to dismiss it. | 
|  18  |  19  | 
|  19   CONTENT_SUGGESTIONS_HIDE_DEADLINE,   // notification_extra().deadline passed. |  20   CONTENT_SUGGESTIONS_HIDE_DEADLINE,   // notification_extra().deadline passed. | 
|  20   CONTENT_SUGGESTIONS_HIDE_EXPIRY,     // NTP no longer shows notified article. |  21   CONTENT_SUGGESTIONS_HIDE_EXPIRY,     // NTP no longer shows notified article. | 
|  21   CONTENT_SUGGESTIONS_HIDE_FRONTMOST,  // Chrome became the frontmost app. |  22   CONTENT_SUGGESTIONS_HIDE_FRONTMOST,  // Chrome became the frontmost app. | 
|  22   CONTENT_SUGGESTIONS_HIDE_DISABLED,   // NTP no longer shows whole category. |  23   CONTENT_SUGGESTIONS_HIDE_DISABLED,   // NTP no longer shows whole category. | 
|  23   CONTENT_SUGGESTIONS_HIDE_SHUTDOWN,   // Content sugg service is shutting down. |  24   CONTENT_SUGGESTIONS_HIDE_SHUTDOWN,   // Content sugg service is shutting down. | 
|  24  |  25  | 
|  25   MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION |  26   MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION | 
|  26 }; |  27 }; | 
|  27  |  28  | 
|  28 enum ContentSuggestionsNotificationOptOut { |  29 enum ContentSuggestionsNotificationOptOut { | 
|  29   CONTENT_SUGGESTIONS_IMPLICIT = 0,  // User ignored notifications. |  30   CONTENT_SUGGESTIONS_IMPLICIT = 0,  // User ignored notifications. | 
|  30   CONTENT_SUGGESTIONS_EXPLICIT,      // User explicitly opted-out. |  31   CONTENT_SUGGESTIONS_EXPLICIT,      // User explicitly opted-out. | 
|  31  |  32  | 
|  32   MAX_CONTENT_SUGGESTIONS_NOTIFICATION_OPT_OUT |  33   MAX_CONTENT_SUGGESTIONS_NOTIFICATION_OPT_OUT | 
|  33 }; |  34 }; | 
|  34  |  35  | 
|  35 void RecordContentSuggestionsNotificationImpression( |  36 void RecordContentSuggestionsNotificationImpression( | 
|  36     ContentSuggestionsNotificationImpression what); |  37     ContentSuggestionsNotificationImpression what); | 
|  37 void RecordContentSuggestionsNotificationAction( |  38 void RecordContentSuggestionsNotificationAction( | 
|  38     ContentSuggestionsNotificationAction what); |  39     ContentSuggestionsNotificationAction what); | 
|  39 void RecordContentSuggestionsNotificationOptOut( |  40 void RecordContentSuggestionsNotificationOptOut( | 
|  40     ContentSuggestionsNotificationOptOut what); |  41     ContentSuggestionsNotificationOptOut what); | 
|  41  |  42  | 
|  42 #endif  // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_ |  43 #endif  // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_METRICS_H_ | 
| OLD | NEW |