| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "aura/desktop_host_win.h" | 5 #include "ui/aura/desktop_host_win.h" |
| 6 | 6 |
| 7 #include "aura/desktop.h" | |
| 8 #include "aura/event.h" | |
| 9 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "ui/aura/desktop.h" |
| 9 #include "ui/aura/event.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 | 12 |
| 13 // static | 13 // static |
| 14 DesktopHost* DesktopHost::Create(const gfx::Rect& bounds) { | 14 DesktopHost* DesktopHost::Create(const gfx::Rect& bounds) { |
| 15 return new DesktopHostWin(bounds); | 15 return new DesktopHostWin(bounds); |
| 16 } | 16 } |
| 17 | 17 |
| 18 DesktopHostWin::DesktopHostWin(const gfx::Rect& bounds) : desktop_(NULL) { | 18 DesktopHostWin::DesktopHostWin(const gfx::Rect& bounds) : desktop_(NULL) { |
| 19 Init(NULL, bounds); | 19 Init(NULL, bounds); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void DesktopHostWin::OnPaint(HDC dc) { | 87 void DesktopHostWin::OnPaint(HDC dc) { |
| 88 desktop_->Draw(); | 88 desktop_->Draw(); |
| 89 ValidateRect(hwnd(), NULL); | 89 ValidateRect(hwnd(), NULL); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void DesktopHostWin::OnSize(UINT param, const CSize& size) { | 92 void DesktopHostWin::OnSize(UINT param, const CSize& size) { |
| 93 desktop_->OnHostResized(gfx::Size(size.cx, size.cy)); | 93 desktop_->OnHostResized(gfx::Size(size.cx, size.cy)); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace aura | 96 } // namespace aura |
| OLD | NEW |