Index: ash/public/cpp/shelf_types.h |
diff --git a/ash/public/cpp/shelf_types.h b/ash/public/cpp/shelf_types.h |
index d63dfc8fb759a2a809df76cb959500d0d624f7d1..95748491eb0db9cf0f403f1632a4bfbe3571598c 100644 |
--- a/ash/public/cpp/shelf_types.h |
+++ b/ash/public/cpp/shelf_types.h |
@@ -55,6 +55,36 @@ enum ShelfBackgroundType { |
SHELF_BACKGROUND_MAXIMIZED, |
}; |
+// Source of the launch or activation request, for tracking. |
+enum ShelfLaunchSource { |
+ // The item was launched from an unknown source (ie. not the app list). |
+ LAUNCH_FROM_UNKNOWN, |
+ |
+ // The item was launched from a generic app list view. |
+ LAUNCH_FROM_APP_LIST, |
+ |
+ // The item was launched from an app list search view. |
+ LAUNCH_FROM_APP_LIST_SEARCH, |
+}; |
+ |
+// The actions that may be performed when a shelf item is selected. |
+enum ShelfAction { |
+ // No action was taken. |
+ SHELF_ACTION_NONE, |
+ |
+ // A new window was created. |
+ SHELF_ACTION_NEW_WINDOW_CREATED, |
+ |
+ // An existing inactive window was activated. |
+ SHELF_ACTION_WINDOW_ACTIVATED, |
+ |
+ // The currently active window was minimized. |
+ SHELF_ACTION_WINDOW_MINIMIZED, |
+ |
+ // The app list launcher menu was shown. |
+ SHELF_ACTION_APP_LIST_SHOWN, |
+}; |
+ |
typedef int ShelfID; |
const int kInvalidShelfID = 0; |