| Index: ui/aura/monitor_manager.cc
|
| diff --git a/ui/aura/monitor_manager.cc b/ui/aura/monitor_manager.cc
|
| index b3f18b911a1bb2f423071c952c762e0462c333dd..f9827d34a9594234d072cbe5f32c926269362649 100644
|
| --- a/ui/aura/monitor_manager.cc
|
| +++ b/ui/aura/monitor_manager.cc
|
| @@ -8,7 +8,8 @@
|
|
|
| #include "base/logging.h"
|
| #include "ui/aura/env.h"
|
| -#include "ui/aura/monitor.h"
|
| +#include "ui/aura/monitor_aura.h"
|
| +#include "ui/aura/monitor_observer.h"
|
| #include "ui/aura/root_window.h"
|
| #include "ui/aura/root_window_host.h"
|
| #include "ui/gfx/rect.h"
|
| @@ -26,7 +27,7 @@ static const int kDefaultHostWindowHeight = 1024;
|
| bool MonitorManager::use_fullscreen_host_window_ = false;
|
|
|
| // static
|
| -Monitor* MonitorManager::CreateMonitorFromSpec(const std::string& spec) {
|
| +MonitorAura* MonitorManager::CreateMonitorFromSpec(const std::string& spec) {
|
| gfx::Rect bounds(kDefaultHostWindowX, kDefaultHostWindowY,
|
| kDefaultHostWindowWidth, kDefaultHostWindowHeight);
|
| int x = 0, y = 0, width, height;
|
| @@ -39,7 +40,7 @@ Monitor* MonitorManager::CreateMonitorFromSpec(const std::string& spec) {
|
| } else if (use_fullscreen_host_window_) {
|
| bounds = gfx::Rect(aura::RootWindowHost::GetNativeScreenSize());
|
| }
|
| - Monitor* monitor = new Monitor();
|
| + MonitorAura* monitor = new MonitorAura();
|
| monitor->set_bounds(bounds);
|
| monitor->set_device_scale_factor(scale);
|
| VLOG(1) << "Monitor bounds=" << bounds.ToString() << ", scale=" << scale;
|
| @@ -70,17 +71,17 @@ void MonitorManager::RemoveObserver(MonitorObserver* observer) {
|
| observers_.RemoveObserver(observer);
|
| }
|
|
|
| -void MonitorManager::NotifyBoundsChanged(const Monitor* monitor) {
|
| +void MonitorManager::NotifyBoundsChanged(const MonitorAura* monitor) {
|
| FOR_EACH_OBSERVER(MonitorObserver, observers_,
|
| OnMonitorBoundsChanged(monitor));
|
| }
|
|
|
| -void MonitorManager::NotifyMonitorAdded(Monitor* monitor) {
|
| +void MonitorManager::NotifyMonitorAdded(MonitorAura* monitor) {
|
| FOR_EACH_OBSERVER(MonitorObserver, observers_,
|
| OnMonitorAdded(monitor));
|
| }
|
|
|
| -void MonitorManager::NotifyMonitorRemoved(const Monitor* monitor) {
|
| +void MonitorManager::NotifyMonitorRemoved(const MonitorAura* monitor) {
|
| FOR_EACH_OBSERVER(MonitorObserver, observers_,
|
| OnMonitorRemoved(monitor));
|
| }
|
|
|