| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // aura::WindowObserver overrides: | 33 // aura::WindowObserver overrides: |
| 34 virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE; | 34 virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE; |
| 35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; | 35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 typedef std::map<ash::LauncherID, aura::Window*> IDToWindow; | 38 typedef std::map<ash::LauncherID, aura::Window*> IDToWindow; |
| 39 | 39 |
| 40 // Window watching for newly created windows to be added to. | 40 // Window watching for newly created windows to be added to. |
| 41 aura::Window* window_; | 41 aura::Window* window_; |
| 42 | 42 |
| 43 aura::Window* panel_container_; |
| 44 |
| 43 // Maps from window to the id we gave it. | 45 // Maps from window to the id we gave it. |
| 44 IDToWindow id_to_window_; | 46 IDToWindow id_to_window_; |
| 45 | 47 |
| 46 DISALLOW_COPY_AND_ASSIGN(WindowWatcher); | 48 DISALLOW_COPY_AND_ASSIGN(WindowWatcher); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 } // namespace shell | 51 } // namespace shell |
| 50 } // namespace ash | 52 } // namespace ash |
| 51 | 53 |
| 52 #endif // ASH_SHELL_WINDOW_WATCHER_H_ | 54 #endif // ASH_SHELL_WINDOW_WATCHER_H_ |
| OLD | NEW |