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