OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef AURA_DESKTOP_HOST_WIN_H_ |
| 6 #define AURA_DESKTOP_HOST_WIN_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "aura/desktop_host.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "ui/base/win/window_impl.h" |
| 12 |
| 13 namespace aura { |
| 14 |
| 15 class DesktopHostWin : public DesktopHost, public ui::WindowImpl { |
| 16 public: |
| 17 DesktopHostWin(const gfx::Rect& bounds); |
| 18 virtual ~DesktopHostWin(); |
| 19 |
| 20 // DesktopHost: |
| 21 virtual void SetDesktop(Desktop* desktop) OVERRIDE; |
| 22 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 23 virtual void Show() OVERRIDE; |
| 24 virtual gfx::Size GetSize() OVERRIDE; |
| 25 |
| 26 private: |
| 27 BEGIN_MSG_MAP_EX(DesktopHostWin) |
| 28 MSG_WM_CLOSE(OnClose) |
| 29 MSG_WM_PAINT(OnPaint) |
| 30 END_MSG_MAP() |
| 31 |
| 32 void OnClose(); |
| 33 void OnPaint(HDC dc); |
| 34 |
| 35 Desktop* desktop_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin); |
| 38 }; |
| 39 |
| 40 } // namespace aura |
| 41 |
| 42 #endif // AURA_DESKTOP_HOST_WIN_H_ |
OLD | NEW |