| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BOOKMARKS_BOOKMARK_STATS_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ |
| 7 | 7 |
| 8 class BookmarkNode; |
| 9 |
| 8 // This enum is used for the Bookmarks.EntryPoint histogram. | 10 // This enum is used for the Bookmarks.EntryPoint histogram. |
| 9 enum BookmarkEntryPoint { | 11 enum BookmarkEntryPoint { |
| 10 BOOKMARK_ENTRY_POINT_ACCELERATOR, | 12 BOOKMARK_ENTRY_POINT_ACCELERATOR, |
| 11 BOOKMARK_ENTRY_POINT_STAR_GESTURE, | 13 BOOKMARK_ENTRY_POINT_STAR_GESTURE, |
| 12 BOOKMARK_ENTRY_POINT_STAR_KEY, | 14 BOOKMARK_ENTRY_POINT_STAR_KEY, |
| 13 BOOKMARK_ENTRY_POINT_STAR_MOUSE, | 15 BOOKMARK_ENTRY_POINT_STAR_MOUSE, |
| 14 | 16 |
| 15 BOOKMARK_ENTRY_POINT_LIMIT // Keep this last. | 17 BOOKMARK_ENTRY_POINT_LIMIT // Keep this last. |
| 16 }; | 18 }; |
| 17 | 19 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU, | 33 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU, |
| 32 // Bookmark manager. | 34 // Bookmark manager. |
| 33 BOOKMARK_LAUNCH_LOCATION_MANAGER, | 35 BOOKMARK_LAUNCH_LOCATION_MANAGER, |
| 34 // Autocomplete suggestion. | 36 // Autocomplete suggestion. |
| 35 BOOKMARK_LAUNCH_LOCATION_OMNIBOX, | 37 BOOKMARK_LAUNCH_LOCATION_OMNIBOX, |
| 36 | 38 |
| 37 BOOKMARK_LAUNCH_LOCATION_LIMIT // Keep this last. | 39 BOOKMARK_LAUNCH_LOCATION_LIMIT // Keep this last. |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 // Records the launch of a bookmark for UMA purposes. | 42 // Records the launch of a bookmark for UMA purposes. |
| 41 void RecordBookmarkLaunch(BookmarkLaunchLocation location); | 43 void RecordBookmarkLaunch(const BookmarkNode* node, |
| 44 BookmarkLaunchLocation location); |
| 42 | 45 |
| 43 // Records the user opening a folder of bookmarks for UMA purposes. | 46 // Records the user opening a folder of bookmarks for UMA purposes. |
| 44 void RecordBookmarkFolderOpen(BookmarkLaunchLocation location); | 47 void RecordBookmarkFolderOpen(BookmarkLaunchLocation location); |
| 45 | 48 |
| 46 // Records the user opening the apps page for UMA purposes. | 49 // Records the user opening the apps page for UMA purposes. |
| 47 void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location); | 50 void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location); |
| 48 | 51 |
| 49 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ | 52 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ |
| OLD | NEW |