Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: ash/public/cpp/shelf_types.h

Issue 2696073002: Merge ShelfItemDelegate::ItemSelected & LauncherItemDelegate::Activate. (Closed)
Patch Set: nit Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/test/test_shelf_item_delegate.cc ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ash/common/test/test_shelf_item_delegate.cc ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698