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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_item_util.cc

Issue 132543003: Add LauncherItem for TaskManager Dialog (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
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_item_util.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_item_util.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698