Updating trunk VERSION from 848.0 to 849.0
[chromium-blink-merge.git] / aura / desktop_host_win.h
blob9513a37676d32e57d34c7c56307a94c088c8aa87
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.
5 #ifndef AURA_DESKTOP_HOST_WIN_H_
6 #define AURA_DESKTOP_HOST_WIN_H_
7 #pragma once
9 #include "aura/desktop_host.h"
10 #include "base/compiler_specific.h"
11 #include "ui/base/win/window_impl.h"
13 namespace aura {
15 class DesktopHostWin : public DesktopHost, public ui::WindowImpl {
16 public:
17 DesktopHostWin(const gfx::Rect& bounds);
18 virtual ~DesktopHostWin();
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;
26 private:
27 BEGIN_MSG_MAP_EX(DesktopHostWin)
28 MSG_WM_CLOSE(OnClose)
29 MSG_WM_PAINT(OnPaint)
30 END_MSG_MAP()
32 void OnClose();
33 void OnPaint(HDC dc);
35 Desktop* desktop_;
37 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin);
40 } // namespace aura
42 #endif // AURA_DESKTOP_HOST_WIN_H_