Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / ash / launcher / launcher_item_util.cc
blob68b064135746491a79682fc5e8393fb11e9ed9c3
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/launcher/launcher_types.h"
6 #include "ash/shelf/shelf_item_types.h"
7 #include "ash/shelf/shelf_util.h"
9 void CreateShelfItemForDialog(int image_resource_id,
10 aura::Window* window) {
11 ash::ShelfItemDetails item_details;
12 item_details.type = ash::TYPE_DIALOG;
13 item_details.image_resource_id = image_resource_id;
14 item_details.title = window->title();
15 ash::SetShelfItemDetailsForWindow(window, item_details);