Index: chrome/browser/ui/ash/launcher/launcher_item_util.cc |
diff --git a/chrome/browser/ui/ash/launcher/launcher_item_util.cc b/chrome/browser/ui/ash/launcher/launcher_item_util.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..68b064135746491a79682fc5e8393fb11e9ed9c3 |
--- /dev/null |
+++ b/chrome/browser/ui/ash/launcher/launcher_item_util.cc |
@@ -0,0 +1,16 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ash/launcher/launcher_types.h" |
+#include "ash/shelf/shelf_item_types.h" |
+#include "ash/shelf/shelf_util.h" |
+ |
+void CreateShelfItemForDialog(int image_resource_id, |
+ aura::Window* window) { |
+ ash::ShelfItemDetails item_details; |
+ item_details.type = ash::TYPE_DIALOG; |
+ item_details.image_resource_id = image_resource_id; |
+ item_details.title = window->title(); |
+ ash::SetShelfItemDetailsForWindow(window, item_details); |
+} |