summaryrefslogtreecommitdiffstats
path: root/views/controls/native_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/native_control.h')
-rw-r--r--views/controls/native_control.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/native_control.h b/views/controls/native_control.h
index 972ef36..ed565e6 100644
--- a/views/controls/native_control.h
+++ b/views/controls/native_control.h
@@ -7,6 +7,7 @@
#include <windows.h>
+#include "base/keyboard_codes.h"
#include "views/view.h"
namespace views {
@@ -79,7 +80,7 @@ class NativeControl : public View {
// Invoked when a key is pressed on the control.
// Should return true if the key message was processed, false otherwise.
- virtual bool OnKeyDown(int virtual_key_code) { return false; }
+ virtual bool OnKeyDown(base::KeyboardCode virtual_key_code) { return false; }
// Returns additional extended style flags. When subclasses call
// CreateWindowEx in order to create the underlying control, they must OR the