| 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 "components/mus/public/cpp/window_observer.h" | 11 #include "components/mus/public/cpp/window_observer.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 12 #include "mojo/public/cpp/system/macros.h" |
| 13 | 13 |
| 14 namespace mus { | 14 namespace mus { |
| 15 | 15 |
| 16 class WindowTracker : public WindowObserver { | 16 class WindowTracker : public WindowObserver { |
| 17 public: | 17 public: |
| 18 using Windows = std::set<Window*>; | 18 using Windows = std::set<Window*>; |
| 19 | 19 |
| 20 WindowTracker(); | 20 WindowTracker(); |
| 21 ~WindowTracker() override; | 21 ~WindowTracker() override; |
| 22 | 22 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 Windows windows_; | 40 Windows windows_; |
| 41 | 41 |
| 42 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTracker); | 42 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTracker); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace mus | 45 } // namespace mus |
| 46 | 46 |
| 47 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ | 47 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TRACKER_H_ |
| OLD | NEW |