| 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 COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_METRICS_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_METRICS_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_METRICS_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_METRICS_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 base::Time publish_date, | 42 base::Time publish_date, |
| 43 float score); | 43 float score); |
| 44 | 44 |
| 45 void OnSuggestionDismissed(int global_position, | 45 void OnSuggestionDismissed(int global_position, |
| 46 Category category, | 46 Category category, |
| 47 int position_in_category, | 47 int position_in_category, |
| 48 bool visited); | 48 bool visited); |
| 49 | 49 |
| 50 void OnSuggestionTargetVisited(Category category, base::TimeDelta visit_time); | 50 void OnSuggestionTargetVisited(Category category, base::TimeDelta visit_time); |
| 51 | 51 |
| 52 void OnCategoryMovedUp(int new_index); |
| 53 |
| 52 // Should only be called once per NTP for each "more" button. | 54 // Should only be called once per NTP for each "more" button. |
| 53 void OnMoreButtonShown(Category category, int position); | 55 void OnMoreButtonShown(Category category, int position); |
| 54 | 56 |
| 55 void OnMoreButtonClicked(Category category, int position); | 57 void OnMoreButtonClicked(Category category, int position); |
| 56 | 58 |
| 57 void OnCategoryDismissed(Category category); | 59 void OnCategoryDismissed(Category category); |
| 58 | 60 |
| 59 } // namespace metrics | 61 } // namespace metrics |
| 60 } // namespace ntp_snippets | 62 } // namespace ntp_snippets |
| 61 | 63 |
| 62 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_ | 64 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_SERVICE_H_ |
| OLD | NEW |