summaryrefslogtreecommitdiffstats
path: root/aura/desktop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'aura/desktop.cc')
-rw-r--r--aura/desktop.cc16
1 files changed, 4 insertions, 12 deletions
diff --git a/aura/desktop.cc b/aura/desktop.cc
index 2bac955..f427daf 100644
--- a/aura/desktop.cc
+++ b/aura/desktop.cc
@@ -5,7 +5,6 @@
#include "aura/desktop.h"
#include "aura/desktop_host.h"
-#include "aura/root_window.h"
#include "aura/window.h"
#include "base/logging.h"
#include "base/message_loop.h"
@@ -22,34 +21,27 @@ Desktop::Desktop()
host_->GetSize());
host_->SetDesktop(this);
DCHECK(compositor_.get());
- window_.reset(new internal::RootWindow);
+ window_.reset(new Window(NULL));
}
Desktop::~Desktop() {
}
-void Desktop::Show() {
- host_->Show();
-}
-
-void Desktop::SetSize(const gfx::Size& size) {
- host_->SetSize(size);
-}
-
void Desktop::Run() {
- Show();
+ host_->Show();
MessageLoop main_message_loop(MessageLoop::TYPE_UI);
MessageLoopForUI::current()->Run(host_);
}
void Desktop::Draw() {
+ // Second pass renders the layers.
compositor_->NotifyStart();
window_->DrawTree();
compositor_->NotifyEnd();
}
bool Desktop::OnMouseEvent(const MouseEvent& event) {
- return window_->HandleMouseEvent(event);
+ return window_->OnMouseEvent(event);
}
// static