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

Side by Side Diff: ui/aura/monitor_manager.cc

Issue 9837046: Revert r128507 "Revert r128436 "relanding: disabled workspace_window_resizer test. fixed access-aft… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « ui/aura/monitor_manager.h ('k') | ui/aura/root_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ui/aura/monitor_manager.h" 5 #include "ui/aura/monitor_manager.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "ui/aura/env.h" 9 #include "ui/aura/env.h"
10 #include "ui/aura/monitor.h" 10 #include "ui/aura/monitor.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void MonitorManager::RemoveObserver(MonitorObserver* observer) { 60 void MonitorManager::RemoveObserver(MonitorObserver* observer) {
61 observers_.RemoveObserver(observer); 61 observers_.RemoveObserver(observer);
62 } 62 }
63 63
64 void MonitorManager::NotifyBoundsChanged(const Monitor* monitor) { 64 void MonitorManager::NotifyBoundsChanged(const Monitor* monitor) {
65 FOR_EACH_OBSERVER(MonitorObserver, observers_, 65 FOR_EACH_OBSERVER(MonitorObserver, observers_,
66 OnMonitorBoundsChanged(monitor)); 66 OnMonitorBoundsChanged(monitor));
67 } 67 }
68 68
69 void MonitorManager::NotifyMonitorAdded(Monitor* monitor) {
70 FOR_EACH_OBSERVER(MonitorObserver, observers_,
71 OnMonitorAdded(monitor));
72 }
73
74 void MonitorManager::NotifyMonitorRemoved(const Monitor* monitor) {
75 FOR_EACH_OBSERVER(MonitorObserver, observers_,
76 OnMonitorRemoved(monitor));
77 }
78
69 } // namespace aura 79 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/monitor_manager.h ('k') | ui/aura/root_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698