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_MONITOR_OBSERVER_H_ | |
6 #define UI_AURA_MONITOR_OBSERVER_H_ | |
7 #pragma once | |
8 | |
9 #include "ui/aura/aura_export.h" | |
10 | |
11 namespace gfx { | |
12 class Monitor; | |
13 } | |
14 | |
15 namespace aura { | |
16 | |
17 // Observers for monitor configuration changes. | |
18 class AURA_EXPORT MonitorObserver { | |
19 public: | |
20 // Called when the |monitor|'s bound has changed. | |
21 virtual void OnMonitorBoundsChanged(const gfx::Monitor& monitor) = 0; | |
22 | |
23 // Called when |new_monitor| has been added. | |
24 virtual void OnMonitorAdded(const gfx::Monitor& new_monitor) = 0; | |
25 | |
26 // Called when |old_monitor| has been removed. | |
27 virtual void OnMonitorRemoved(const gfx::Monitor& old_monitor) = 0; | |
28 | |
29 protected: | |
30 virtual ~MonitorObserver(); | |
31 }; | |
32 | |
33 } // namespace aura | |
34 | |
35 #endif // UI_AURA_MONITOR_OBSERVER_H_ | |
OLD | NEW |