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

Side by Side Diff: ui/aura/desktop_host_win.h

Issue 8342026: Get basic KeyEvents working in RWHVA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/desktop_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_AURA_DESKTOP_HOST_WIN_H_ 5 #ifndef UI_AURA_DESKTOP_HOST_WIN_H_
6 #define UI_AURA_DESKTOP_HOST_WIN_H_ 6 #define UI_AURA_DESKTOP_HOST_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/desktop_host.h" 10 #include "ui/aura/desktop_host.h"
(...skipping 22 matching lines...) Expand all
33 BEGIN_MSG_MAP_EX(DesktopHostWin) 33 BEGIN_MSG_MAP_EX(DesktopHostWin)
34 // Range handlers must go first! 34 // Range handlers must go first!
35 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 35 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
36 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) 36 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange)
37 37
38 // Key events. 38 // Key events.
39 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) 39 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent)
40 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) 40 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent)
41 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent) 41 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent)
42 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent) 42 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent)
43 MESSAGE_HANDLER_EX(WM_CHAR, OnKeyEvent)
44 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnKeyEvent)
45 MESSAGE_HANDLER_EX(WM_IME_CHAR, OnKeyEvent)
43 46
44 MSG_WM_CLOSE(OnClose) 47 MSG_WM_CLOSE(OnClose)
45 MSG_WM_PAINT(OnPaint) 48 MSG_WM_PAINT(OnPaint)
46 MSG_WM_SIZE(OnSize) 49 MSG_WM_SIZE(OnSize)
47 END_MSG_MAP() 50 END_MSG_MAP()
48 51
49 void OnClose(); 52 void OnClose();
50 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); 53 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param);
51 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param); 54 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param);
52 void OnPaint(HDC dc); 55 void OnPaint(HDC dc);
53 void OnSize(UINT param, const CSize& size); 56 void OnSize(UINT param, const CSize& size);
54 57
55 Desktop* desktop_; 58 Desktop* desktop_;
56 59
57 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin); 60 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin);
58 }; 61 };
59 62
60 } // namespace aura 63 } // namespace aura
61 64
62 #endif // UI_AURA_DESKTOP_HOST_WIN_H_ 65 #endif // UI_AURA_DESKTOP_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/desktop_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698