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 UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_ | 5 #ifndef UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_ |
6 #define UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_ | 6 #define UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 void AddObserver(DisplayObserver* observer); | 25 void AddObserver(DisplayObserver* observer); |
26 | 26 |
27 void RemoveObserver(DisplayObserver* observer); | 27 void RemoveObserver(DisplayObserver* observer); |
28 | 28 |
29 void NotifyDisplaysChanged(const std::vector<Display>& old_displays, | 29 void NotifyDisplaysChanged(const std::vector<Display>& old_displays, |
30 const std::vector<Display>& new_displays); | 30 const std::vector<Display>& new_displays); |
31 | 31 |
32 private: | 32 private: |
33 // The observers that need to be notified when a display is modified, added | 33 // The observers that need to be notified when a display is modified, added |
34 // or removed. | 34 // or removed. |
35 ObserverList<DisplayObserver> observer_list_; | 35 base::ObserverList<DisplayObserver> observer_list_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(DisplayChangeNotifier); | 37 DISALLOW_COPY_AND_ASSIGN(DisplayChangeNotifier); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace gfx | 40 } // namespace gfx |
41 | 41 |
42 #endif // UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_ | 42 #endif // UI_GFX_DISPLAY_CHANGE_NOTIFIER_H_ |
43 | 43 |
OLD | NEW |