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_ |
sky
2014/04/18 17:05:04
Are you modifying this file in expectation of movi
sdefresne
2014/04/18 22:25:49
The function RecordBookmarkLaunch is currently use
| |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ |
7 | 7 |
8 class BookmarkClient; | |
8 class BookmarkNode; | 9 class BookmarkNode; |
9 | 10 |
10 // This enum is used for the Bookmarks.EntryPoint histogram. | 11 // This enum is used for the Bookmarks.EntryPoint histogram. |
11 enum BookmarkEntryPoint { | 12 enum BookmarkEntryPoint { |
12 BOOKMARK_ENTRY_POINT_ACCELERATOR, | 13 BOOKMARK_ENTRY_POINT_ACCELERATOR, |
13 BOOKMARK_ENTRY_POINT_STAR_GESTURE, | 14 BOOKMARK_ENTRY_POINT_STAR_GESTURE, |
14 BOOKMARK_ENTRY_POINT_STAR_KEY, | 15 BOOKMARK_ENTRY_POINT_STAR_KEY, |
15 BOOKMARK_ENTRY_POINT_STAR_MOUSE, | 16 BOOKMARK_ENTRY_POINT_STAR_MOUSE, |
16 | 17 |
17 BOOKMARK_ENTRY_POINT_LIMIT // Keep this last. | 18 BOOKMARK_ENTRY_POINT_LIMIT // Keep this last. |
(...skipping 15 matching lines...) Expand all Loading... | |
33 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU, | 34 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU, |
34 // Bookmark manager. | 35 // Bookmark manager. |
35 BOOKMARK_LAUNCH_LOCATION_MANAGER, | 36 BOOKMARK_LAUNCH_LOCATION_MANAGER, |
36 // Autocomplete suggestion. | 37 // Autocomplete suggestion. |
37 BOOKMARK_LAUNCH_LOCATION_OMNIBOX, | 38 BOOKMARK_LAUNCH_LOCATION_OMNIBOX, |
38 | 39 |
39 BOOKMARK_LAUNCH_LOCATION_LIMIT // Keep this last. | 40 BOOKMARK_LAUNCH_LOCATION_LIMIT // Keep this last. |
40 }; | 41 }; |
41 | 42 |
42 // Records the launch of a bookmark for UMA purposes. | 43 // Records the launch of a bookmark for UMA purposes. |
43 void RecordBookmarkLaunch(const BookmarkNode* node, | 44 void RecordBookmarkLaunch(BookmarkClient* client, |
45 const BookmarkNode* node, | |
44 BookmarkLaunchLocation location); | 46 BookmarkLaunchLocation location); |
45 | 47 |
46 // Records the user opening a folder of bookmarks for UMA purposes. | 48 // Records the user opening a folder of bookmarks for UMA purposes. |
47 void RecordBookmarkFolderOpen(BookmarkLaunchLocation location); | 49 void RecordBookmarkFolderOpen(BookmarkClient* client, |
50 BookmarkLaunchLocation location); | |
48 | 51 |
49 // Records the user opening the apps page for UMA purposes. | 52 // Records the user opening the apps page for UMA purposes. |
50 void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location); | 53 void RecordBookmarkAppsPageOpen(BookmarkClient* client, |
54 BookmarkLaunchLocation location); | |
51 | 55 |
52 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ | 56 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ |
OLD | NEW |