Index: ash/shelf/shelf_util.cc |
diff --git a/ash/shelf/shelf_util.cc b/ash/shelf/shelf_util.cc |
index af773b4bbccc3f1b7b759845a31276ee8a008ded..de5d3c793fd5ab2fdbcc97af1f99eb4248de87be 100644 |
--- a/ash/shelf/shelf_util.cc |
+++ b/ash/shelf/shelf_util.cc |
@@ -39,6 +39,16 @@ void SetShelfItemDetailsForWindow(aura::Window* window, |
window->SetProperty(kShelfItemDetailsKey, item_details); |
} |
+void SetShelfItemDetailsForDialogWindow(aura::Window* window, |
+ int image_resource_id) { |
+ // |item_details| is owned by |window|. |
+ ShelfItemDetails* item_details = new ShelfItemDetails; |
+ item_details->type = TYPE_DIALOG; |
+ item_details->image_resource_id = image_resource_id; |
+ item_details->title = window->title(); |
+ window->SetProperty(kShelfItemDetailsKey, item_details); |
+} |
+ |
void ClearShelfItemDetailsForWindow(aura::Window* window) { |
window->ClearProperty(kShelfItemDetailsKey); |
} |