Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Unified Diff: ui/aura/monitor_observer.h

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/monitor_observer.h
diff --git a/ui/aura/monitor_observer.h b/ui/aura/monitor_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..44b7b30e6c9e45e48fa194e1682cb291a5cb5d3c
--- /dev/null
+++ b/ui/aura/monitor_observer.h
@@ -0,0 +1,35 @@
+// 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_AURA_MONITOR_OBSERVER_H_
+#define UI_AURA_MONITOR_OBSERVER_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+
+namespace gfx {
+class Monitor;
+}
+
+namespace aura {
+
+// Observers for monitor configuration changes.
+class AURA_EXPORT MonitorObserver {
+ public:
+ // Called when the |monitor|'s bound has changed.
+ virtual void OnMonitorBoundsChanged(const gfx::Monitor* monitor) = 0;
Ben Goodger (Google) 2012/04/24 21:17:08 const gfx::Monitor& monitor for all methods in th
oshima 2012/04/25 02:38:01 Done.
+
+ // Called when |new_monitor| has been added.
+ virtual void OnMonitorAdded(gfx::Monitor* new_monitor) = 0;
+
+ // Called when |old_monitor| has been removed.
+ virtual void OnMonitorRemoved(const gfx::Monitor* old_monitor) = 0;
+
+ protected:
+ virtual ~MonitorObserver();
+};
+
+} // namespace aura
+
+#endif // UI_AURA_MONITOR_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698