summaryrefslogtreecommitdiffstats
path: root/base/win_util.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 21:18:58 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 21:18:58 +0000
commitd766882c913b272cc2db478d7640a317d838ebad (patch)
tree99424c7a994d0d771bd4c3bdf2b196042b937b62 /base/win_util.h
parenteb75208190b35bedd144e102ea5cc826358bbbfd (diff)
downloadchromium_src-d766882c913b272cc2db478d7640a317d838ebad.zip
chromium_src-d766882c913b272cc2db478d7640a317d838ebad.tar.gz
chromium_src-d766882c913b272cc2db478d7640a317d838ebad.tar.bz2
Changing the KeyboardEvent to use a KeyboardCode instead of a w_char. Led to several places where I had to switch from VK_ to VKEY_.
Also cleaned-up the table view OnKeyDown method. Since TableView is a NativeControl it can use the NativeControl::OnKeyDown directly. BUG=None TEST=Make sure short-cuts works as expected, especially in the omnibox. Review URL: http://codereview.chromium.org/248010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/win_util.h')
-rw-r--r--base/win_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/win_util.h b/base/win_util.h
index e628bd7..307eddb 100644
--- a/base/win_util.h
+++ b/base/win_util.h
@@ -10,6 +10,8 @@
#include <string>
+#include "base/keyboard_codes.h"
+
namespace win_util {
// NOTE: Keep these in order so callers can do things like
@@ -104,6 +106,10 @@ std::wstring FormatMessage(unsigned messageid);
// Uses the last Win32 error to generate a human readable message string.
std::wstring FormatLastWin32Error();
+// Methods to convert base::KeyboardCode/Windows virtual key type methods.
+WORD KeyboardCodeToWin(base::KeyboardCode keycode);
+base::KeyboardCode WinToKeyboardCode(WORD keycode);
+
} // namespace win_util
#endif // BASE_WIN_UTIL_H__