OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_MUS_COMMON_WINDOW_TRACKER_H_ | 5 #ifndef COMPONENTS_MUS_COMMON_WINDOW_TRACKER_H_ |
6 #define COMPONENTS_MUS_COMMON_WINDOW_TRACKER_H_ | 6 #define COMPONENTS_MUS_COMMON_WINDOW_TRACKER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Observer overrides: | 54 // Observer overrides: |
55 void OnWindowDestroying(T* window) override { | 55 void OnWindowDestroying(T* window) override { |
56 DCHECK(Contains(window)); | 56 DCHECK(Contains(window)); |
57 Remove(window); | 57 Remove(window); |
58 } | 58 } |
59 | 59 |
60 private: | 60 private: |
61 WindowList windows_; | 61 WindowList windows_; |
62 | 62 |
63 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTrackerTemplate); | 63 DISALLOW_COPY_AND_ASSIGN(WindowTrackerTemplate); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace mus | 66 } // namespace mus |
67 | 67 |
68 #endif // COMPONENTS_MUS_COMMON_WINDOW_TRACKER_H_ | 68 #endif // COMPONENTS_MUS_COMMON_WINDOW_TRACKER_H_ |
OLD | NEW |