summaryrefslogtreecommitdiffstats
path: root/chromium/ash/shell/window_watcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/shell/window_watcher.h')
-rw-r--r--chromium/ash/shell/window_watcher.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/chromium/ash/shell/window_watcher.h b/chromium/ash/shell/window_watcher.h
deleted file mode 100644
index fcda05a725f..00000000000
--- a/chromium/ash/shell/window_watcher.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_SHELL_WINDOW_WATCHER_H_
-#define ASH_SHELL_WINDOW_WATCHER_H_
-
-#include <map>
-
-#include "ash/launcher/launcher_types.h"
-#include "base/compiler_specific.h"
-#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/aura/window_observer.h"
-#include "ui/gfx/display_observer.h"
-
-namespace aura {
-class Window;
-}
-
-namespace ash {
-namespace shell {
-
-// TODO(sky): fix this class, its a bit broke with workspace2.
-
-// WindowWatcher is responsible for listening for newly created windows and
-// creating items on the Shelf for them.
-class WindowWatcher : public aura::WindowObserver,
- public gfx::DisplayObserver {
- public:
- WindowWatcher();
- virtual ~WindowWatcher();
-
- aura::Window* GetWindowByID(ash::LauncherID id);
-
- // aura::WindowObserver overrides:
- virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE;
- virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE;
-
- // gfx::DisplayObserver overrides:
- virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE;
- virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
- virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
-
- private:
- class WorkspaceWindowWatcher;
-
- typedef std::map<ash::LauncherID, aura::Window*> IDToWindow;
-
- // Maps from window to the id we gave it.
- IDToWindow id_to_window_;
-
- scoped_ptr<WorkspaceWindowWatcher> workspace_window_watcher_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowWatcher);
-};
-
-} // namespace shell
-} // namespace ash
-
-#endif // ASH_SHELL_WINDOW_WATCHER_H_