Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: aura/desktop_host_win.h

Issue 7886042: Move Aura to UI subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 explicit DesktopHostWin(const gfx::Rect& bounds);
18 virtual ~DesktopHostWin();
19
20 // MessageLoop::Dispatcher:
21 virtual bool Dispatch(const MSG& msg);
22
23 // DesktopHost:
24 virtual void SetDesktop(Desktop* desktop) OVERRIDE;
25 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
26 virtual void Show() OVERRIDE;
27 virtual gfx::Size GetSize() OVERRIDE;
28 virtual void SetSize(const gfx::Size& size) OVERRIDE;
29
30 private:
31 BEGIN_MSG_MAP_EX(DesktopHostWin)
32 // Range handlers must go first!
33 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
34 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange)
35
36 // Key events.
37 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent)
38 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent)
39 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent)
40 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent)
41
42 MSG_WM_CLOSE(OnClose)
43 MSG_WM_PAINT(OnPaint)
44 MSG_WM_SIZE(OnSize)
45 END_MSG_MAP()
46
47 void OnClose();
48 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param);
49 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param);
50 void OnPaint(HDC dc);
51 void OnSize(UINT param, const CSize& size);
52
53 Desktop* desktop_;
54
55 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin);
56 };
57
58 } // namespace aura
59
60 #endif // AURA_DESKTOP_HOST_WIN_H_
OLDNEW
« no previous file with comments | « aura/desktop_host_linux.cc ('k') | aura/desktop_host_win.cc » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698