| 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 UI_AURA_WINDOW_TRACKER_H_ | 5 #ifndef UI_AURA_WINDOW_TRACKER_H_ |
| 6 #define UI_AURA_WINDOW_TRACKER_H_ | 6 #define UI_AURA_WINDOW_TRACKER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void Add(Window* window); | 30 void Add(Window* window); |
| 31 | 31 |
| 32 // Removes |window| from the set of windows being tracked. | 32 // Removes |window| from the set of windows being tracked. |
| 33 void Remove(Window* window); | 33 void Remove(Window* window); |
| 34 | 34 |
| 35 // Returns true if |window| was previously added and has not been removed or | 35 // Returns true if |window| was previously added and has not been removed or |
| 36 // deleted. | 36 // deleted. |
| 37 bool Contains(Window* window); | 37 bool Contains(Window* window); |
| 38 | 38 |
| 39 // WindowObserver overrides: | 39 // WindowObserver overrides: |
| 40 virtual void OnWindowDestroying(Window* window) OVERRIDE; | 40 virtual void OnWindowDestroying(Window* window) override; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 Windows windows_; | 43 Windows windows_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(WindowTracker); | 45 DISALLOW_COPY_AND_ASSIGN(WindowTracker); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace aura | 48 } // namespace aura |
| 49 | 49 |
| 50 #endif // UI_AURA_WINDOW_TRACKER_H_ | 50 #endif // UI_AURA_WINDOW_TRACKER_H_ |
| OLD | NEW |