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

Unified Diff: ash/shelf/shelf_model.cc

Issue 107163005: [ash] Add TYPE_DIALOG and its item's LauncherContextMenu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 11 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
Index: ash/shelf/shelf_model.cc
diff --git a/ash/shelf/shelf_model.cc b/ash/shelf/shelf_model.cc
index d5d83f12e6a1001ad4bc7ca3fc351ea965cbdf3b..8f4f10fe8b031fe0f3e60504e8dc64e05ba43de7 100644
--- a/ash/shelf/shelf_model.cc
+++ b/ash/shelf/shelf_model.cc
@@ -26,8 +26,10 @@ int LauncherItemTypeToWeight(LauncherItemType type) {
return 1;
case TYPE_PLATFORM_APP:
return 2;
- case TYPE_APP_PANEL:
+ case TYPE_DIALOG:
return 3;
+ case TYPE_APP_PANEL:
+ return 4;
case TYPE_UNDEFINED:
NOTREACHED() << "LauncherItemType must be set";
return -1;
@@ -42,8 +44,10 @@ int LauncherItemTypeToWeight(LauncherItemType type) {
return 1;
case TYPE_APP_LIST:
return 2;
- case TYPE_APP_PANEL:
+ case TYPE_DIALOG:
return 3;
+ case TYPE_APP_PANEL:
+ return 4;
case TYPE_UNDEFINED:
NOTREACHED() << "LauncherItemType must be set";
return -1;

Powered by Google App Engine
This is Rietveld 408576698