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

Side by Side Diff: ash/shell/window_watcher.h

Issue 71653003: ash: Rename LauncherModel to ShelfModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome changes Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/shell/window_watcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SHELL_WINDOW_WATCHER_H_ 5 #ifndef ASH_SHELL_WINDOW_WATCHER_H_
6 #define ASH_SHELL_WINDOW_WATCHER_H_ 6 #define ASH_SHELL_WINDOW_WATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/launcher/launcher_types.h" 10 #include "ash/launcher/launcher_types.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "ui/aura/window_observer.h" 14 #include "ui/aura/window_observer.h"
15 #include "ui/gfx/display_observer.h" 15 #include "ui/gfx/display_observer.h"
16 16
17 namespace aura { 17 namespace aura {
18 class Window; 18 class Window;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 namespace shell { 22 namespace shell {
23 23
24 // TODO(sky): fix this class, its a bit broke with workspace2. 24 // TODO(sky): fix this class, its a bit broke with workspace2.
25 25
26 // WindowWatcher is responsible for listening for newly created windows and 26 // WindowWatcher is responsible for listening for newly created windows and
27 // creating items on the Launcher for them. 27 // creating items on the Shelf for them.
28 class WindowWatcher : public aura::WindowObserver, 28 class WindowWatcher : public aura::WindowObserver,
29 public gfx::DisplayObserver { 29 public gfx::DisplayObserver {
30 public: 30 public:
31 WindowWatcher(); 31 WindowWatcher();
32 virtual ~WindowWatcher(); 32 virtual ~WindowWatcher();
33 33
34 aura::Window* GetWindowByID(ash::LauncherID id); 34 aura::Window* GetWindowByID(ash::LauncherID id);
35 ash::LauncherID GetIDByWindow(aura::Window* window) const; 35 ash::LauncherID GetIDByWindow(aura::Window* window) const;
36 36
37 // aura::WindowObserver overrides: 37 // aura::WindowObserver overrides:
(...skipping 15 matching lines...) Expand all
53 53
54 scoped_ptr<WorkspaceWindowWatcher> workspace_window_watcher_; 54 scoped_ptr<WorkspaceWindowWatcher> workspace_window_watcher_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(WindowWatcher); 56 DISALLOW_COPY_AND_ASSIGN(WindowWatcher);
57 }; 57 };
58 58
59 } // namespace shell 59 } // namespace shell
60 } // namespace ash 60 } // namespace ash
61 61
62 #endif // ASH_SHELL_WINDOW_WATCHER_H_ 62 #endif // ASH_SHELL_WINDOW_WATCHER_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/shell/window_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698