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

Unified Diff: mash/task_viewer/task_viewer.cc

Issue 1824183002: Mash: Show app icons in shelf based on the Widget's app icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments Created 4 years, 9 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 | « mash/task_viewer/BUILD.gn ('k') | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/task_viewer/task_viewer.cc
diff --git a/mash/task_viewer/task_viewer.cc b/mash/task_viewer/task_viewer.cc
index 0e01a0059252f6f7d5f71d702cdd08be84ed4a6a..fb5cb1f2575ac92a308169418b3e99c195f9a299 100644
--- a/mash/task_viewer/task_viewer.cc
+++ b/mash/task_viewer/task_viewer.cc
@@ -19,6 +19,8 @@
#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/interfaces/shell.mojom.h"
#include "ui/base/models/table_model.h"
+#include "ui/base/resource/resource_bundle.h"
+#include "ui/resources/grit/ui_resources.h"
#include "ui/views/background.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/table/table_view.h"
@@ -87,6 +89,13 @@ class TaskViewerContents : public views::WidgetDelegateView,
return base::ASCIIToUTF16("Tasks");
}
+ gfx::ImageSkia GetWindowAppIcon() override {
+ // TODO(jamescook): Create a new .pak file for this app and make a custom
+ // icon, perhaps one that looks like the Chrome OS task viewer icon.
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ return *rb.GetImageSkiaNamed(IDR_NOTIFICATION_SETTINGS);
+ }
+
// Overridden from views::View:
void Layout() override {
gfx::Rect bounds = GetLocalBounds();
« no previous file with comments | « mash/task_viewer/BUILD.gn ('k') | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698