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

Side by Side Diff: ui/gfx/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: fix command line 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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();
Ben Goodger (Google) 2012/04/10 16:37:20 don't think you need this ctor
oshima 2012/04/10 21:31:46 Done.
28 virtual ~MonitorObserver();
29 };
30
31 } // namespace gfx
32
33 #endif // UI_GFX_MONITOR_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698