OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_AURA_DISPLAY_OBSERVER_H_ | |
6 #define UI_AURA_DISPLAY_OBSERVER_H_ | |
7 | |
8 #include "ui/aura/aura_export.h" | |
9 | |
10 namespace gfx { | |
11 class Display; | |
12 } | |
13 | |
14 namespace aura { | |
15 | |
16 // Observers for display configuration changes. | |
17 class AURA_EXPORT DisplayObserver { | |
18 public: | |
19 // Called when the |display|'s bound has changed. | |
20 virtual void OnDisplayBoundsChanged(const gfx::Display& display) = 0; | |
21 | |
22 // Called when |new_display| has been added. | |
23 virtual void OnDisplayAdded(const gfx::Display& new_display) = 0; | |
24 | |
25 // Called when |old_display| has been removed. | |
26 virtual void OnDisplayRemoved(const gfx::Display& old_display) = 0; | |
27 | |
28 protected: | |
29 virtual ~DisplayObserver(); | |
30 }; | |
31 | |
32 } // namespace aura | |
33 | |
34 #endif // UI_AURA_DISPLAY_OBSERVER_H_ | |
OLD | NEW |