OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PUBLIC_CPP_WINDOW_TRACKER_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <set> | 9 #include <set> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "components/mus/public/cpp/window_observer.h" | 12 #include "components/mus/public/cpp/window_observer.h" |
12 #include "mojo/public/cpp/system/macros.h" | 13 #include "mojo/public/cpp/system/macros.h" |
13 | 14 |
14 namespace mus { | 15 namespace mus { |
15 | 16 |
16 class WindowTracker : public WindowObserver { | 17 class WindowTracker : public WindowObserver { |
17 public: | 18 public: |
18 using Windows = std::set<Window*>; | 19 using Windows = std::set<Window*>; |
19 | 20 |
20 WindowTracker(); | 21 WindowTracker(); |
(...skipping 17 matching lines...) Expand all Loading... |
38 | 39 |
39 private: | 40 private: |
40 Windows windows_; | 41 Windows windows_; |
41 | 42 |
42 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTracker); | 43 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTracker); |
43 }; | 44 }; |
44 | 45 |
45 } // namespace mus | 46 } // namespace mus |
46 | 47 |
47 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ | 48 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ |
OLD | NEW |