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

Unified Diff: ash/shell/panel_window.cc

Issue 2462753002: Use Ash's ShelfWindowWatcher for app panel windows. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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: ash/shell/panel_window.cc
diff --git a/ash/shell/panel_window.cc b/ash/shell/panel_window.cc
index 168649f032fbe31eec1674af5ac0fc88bfa837c8..f9150b8203b97a957540bbb63585c382939c6d44 100644
--- a/ash/shell/panel_window.cc
+++ b/ash/shell/panel_window.cc
@@ -7,9 +7,9 @@
#include "ash/common/wm/panels/panel_frame_view.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
+#include "ash/wm/window_properties.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/aura/window.h"
-#include "ui/aura/window_event_dispatcher.h"
#include "ui/gfx/canvas.h"
#include "ui/views/widget/widget.h"
@@ -49,6 +49,8 @@ views::Widget* PanelWindow::CreateWidget() {
widget->Init(params());
widget->GetNativeView()->SetName(name_);
+ widget->GetNativeWindow()->SetProperty<int>(kShelfItemTypeKey,
+ TYPE_APP_PANEL);
widget->Show();
return widget;
« no previous file with comments | « ash/common/shelf/shelf_window_watcher_unittest.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698