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