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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_
12 // This enum is used for the Bookmarks.EntryPoint histogram.
13 enum BookmarkEntryPoint
{
14 BOOKMARK_ENTRY_POINT_ACCELERATOR
,
15 BOOKMARK_ENTRY_POINT_STAR_GESTURE
,
16 BOOKMARK_ENTRY_POINT_STAR_KEY
,
17 BOOKMARK_ENTRY_POINT_STAR_MOUSE
,
19 BOOKMARK_ENTRY_POINT_LIMIT
// Keep this last.
22 // This enum is used for the Bookmarks.LaunchLocation histogram.
23 enum BookmarkLaunchLocation
{
24 BOOKMARK_LAUNCH_LOCATION_NONE
,
25 BOOKMARK_LAUNCH_LOCATION_ATTACHED_BAR
= 0,
26 BOOKMARK_LAUNCH_LOCATION_DETACHED_BAR
,
27 // These two are kind of sub-categories of the bookmark bar. Generally
28 // a launch from a context menu or subfolder could be classified in one of
29 // the other two bar buckets, but doing so is difficult because the menus
30 // don't know of their greater place in Chrome.
31 BOOKMARK_LAUNCH_LOCATION_BAR_SUBFOLDER
,
32 BOOKMARK_LAUNCH_LOCATION_CONTEXT_MENU
,
34 // Bookmarks menu within wrench menu.
35 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU
,
37 BOOKMARK_LAUNCH_LOCATION_MANAGER
,
38 // Autocomplete suggestion.
39 BOOKMARK_LAUNCH_LOCATION_OMNIBOX
,
41 BOOKMARK_LAUNCH_LOCATION_LIMIT
// Keep this last.
44 // Records the launch of a bookmark for UMA purposes.
45 void RecordBookmarkLaunch(const bookmarks::BookmarkNode
* node
,
46 BookmarkLaunchLocation location
);
48 // Records the user opening a folder of bookmarks for UMA purposes.
49 void RecordBookmarkFolderOpen(BookmarkLaunchLocation location
);
51 // Records the user opening the apps page for UMA purposes.
52 void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location
);
54 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_