1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/shelf/shelf_item_types.h"
6 #include "ash/shelf/shelf_util.h"
8 void CreateShelfItemForDialog(int image_resource_id
, aura::Window
* window
) {
9 ash::ShelfItemDetails item_details
;
10 item_details
.type
= ash::TYPE_DIALOG
;
11 item_details
.image_resource_id
= image_resource_id
;
12 item_details
.title
= window
->title();
13 ash::SetShelfItemDetailsForWindow(window
, item_details
);