Index: ui/gfx/monitor_observer.h |
diff --git a/ui/gfx/monitor_observer.h b/ui/gfx/monitor_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..31b7f5eb72d8a2456a13229fd1ac7c93b1279315 |
--- /dev/null |
+++ b/ui/gfx/monitor_observer.h |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_GFX_MONITOR_OBSERVER_H_ |
+#define UI_GFX_MONITOR_OBSERVER_H_ |
+#pragma once |
+ |
+#include "ui/base/ui_export.h" |
+ |
+namespace gfx { |
+class Monitor; |
+ |
+// Observers for monitor configuration changes. |
+class UI_EXPORT MonitorObserver { |
+ public: |
+ // Called when the |monitor|'s bound has changed. |
+ virtual void OnMonitorBoundsChanged(const Monitor* monitor) = 0; |
+ |
+ // Called when |new_monitor| has been added. |
+ virtual void OnMonitorAdded(Monitor* new_monitor) = 0; |
+ |
+ // Called when |old_monitor| has been removed. |
+ virtual void OnMonitorRemoved(const Monitor* old_monitor) = 0; |
+ |
+ protected: |
+ MonitorObserver(); |
Ben Goodger (Google)
2012/04/10 16:37:20
don't think you need this ctor
oshima
2012/04/10 21:31:46
Done.
|
+ virtual ~MonitorObserver(); |
+}; |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GFX_MONITOR_OBSERVER_H_ |