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

Unified Diff: chrome/browser/ui/views/panels/panel_view.cc

Issue 333593003: Make panels have their own shelf item in Unity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/panels/panel_view.cc
diff --git a/chrome/browser/ui/views/panels/panel_view.cc b/chrome/browser/ui/views/panels/panel_view.cc
index 822bbdf252016a9542cdbc2bacd9256ded881684..09f9050ba62a9064017885656e6eb8c95668a32f 100644
--- a/chrome/browser/ui/views/panels/panel_view.cc
+++ b/chrome/browser/ui/views/panels/panel_view.cc
@@ -39,7 +39,9 @@
#endif
#if defined(USE_X11) && !defined(OS_CHROMEOS)
+#include "chrome/browser/shell_integration_linux.h"
#include "chrome/browser/ui/views/panels/x11_panel_resizer.h"
+#include "chrome/browser/web_applications/web_app.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
#endif
@@ -285,6 +287,12 @@ PanelView::PanelView(Panel* panel, const gfx::Rect& bounds, bool always_on_top)
params.keep_on_top = always_on_top;
params.visible_on_all_workspaces = always_on_top;
params.bounds = bounds;
+
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
+ params.wm_class_name = web_app::GetWMClassFromAppName(panel->app_name());
+ params.wm_class_class = shell_integration_linux::GetProgramClassName();
+#endif
+
window_->Init(params);
window_->set_frame_type(views::Widget::FRAME_TYPE_FORCE_CUSTOM);
window_->set_focus_on_creation(false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698