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

Unified Diff: views/event_win.cc

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: key_code, ET_KEY_PRESS for WM_CHAR Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/event.h ('k') | views/examples/textfield_example.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/event_win.cc
diff --git a/views/event_win.cc b/views/event_win.cc
index 5542f597f06280cfb3eaaca9a1f08778ace106f4..99f43a0ba4b35c36dea405e6101e7da7e6277791 100644
--- a/views/event_win.cc
+++ b/views/event_win.cc
@@ -8,6 +8,16 @@
namespace views {
+KeyEvent::KeyEvent(EventType type, app::KeyboardCode key_code,
+ int event_flags, int repeat_count, int message_flags,
+ UINT message)
+ : Event(type, event_flags),
+ key_code_(key_code),
+ repeat_count_(repeat_count),
+ message_flags_(message_flags),
+ message_(message) {
+}
+
int Event::GetWindowsFlags() const {
// TODO: need support for x1/x2.
int result = 0;
« no previous file with comments | « views/event.h ('k') | views/examples/textfield_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698