Index: ash/shell/window_watcher.cc |
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc |
index ec14e1bc13f7c83e5243e69107e3c256d3357e97..ed6362c515aba08288cbf518250b9e7c98df5889 100644 |
--- a/ash/shell/window_watcher.cc |
+++ b/ash/shell/window_watcher.cc |
@@ -7,14 +7,18 @@ |
#include "ash/launcher/launcher.h" |
#include "ash/launcher/launcher_model.h" |
#include "ash/shell.h" |
+#include "ash/shell_window_ids.h" |
#include "ui/aura/window.h" |
namespace ash { |
namespace shell { |
WindowWatcher::WindowWatcher() |
- : window_(ash::Shell::GetInstance()->launcher()->window_container()) { |
+ : window_(ash::Shell::GetInstance()->launcher()->window_container()), |
+ panel_container_(ash::Shell::GetInstance()->GetContainer( |
+ ash::internal::kShellWindowId_PanelContainer)) { |
stevenjb
2012/04/05 20:48:47
nit: ash:: should be intended 4 spaces past 'panel
|
window_->AddObserver(this); |
+ panel_container_->AddObserver(this); |
} |
WindowWatcher::~WindowWatcher() { |
@@ -37,7 +41,8 @@ ash::LauncherID WindowWatcher::GetIDByWindow(aura::Window* window) const { |
// aura::WindowObserver overrides: |
void WindowWatcher::OnWindowAdded(aura::Window* new_window) { |
- if (new_window->type() != aura::client::WINDOW_TYPE_NORMAL) |
+ if (new_window->type() != aura::client::WINDOW_TYPE_NORMAL && |
+ new_window->type() != aura::client::WINDOW_TYPE_PANEL) |
return; |
static int image_count = 0; |