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

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: //ui/resources 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
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..98d73bbe78b730808cace1dede166a3824015498 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 use a custom
msw 2016/03/24 17:40:54 Hmm, if this relies on chrome's image resources, w
James Cook 2016/03/25 15:39:28 This icon isn't from Chrome or Ash. For better or
+ // icon, perhaps similar to the Chrome OS task viewer.
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ return *rb.GetImageSkiaNamed(IDR_NOTIFICATION_SETTINGS);
+ }
+
// Overridden from views::View:
void Layout() override {
gfx::Rect bounds = GetLocalBounds();

Powered by Google App Engine
This is Rietveld 408576698