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

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: " 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
Index: views/event_win.cc
diff --git a/views/event_win.cc b/views/event_win.cc
index 5542f597f06280cfb3eaaca9a1f08778ace106f4..6334fa602aed6bcdeb873fa81f637451c8d6860f 100644
--- a/views/event_win.cc
+++ b/views/event_win.cc
@@ -8,6 +8,16 @@
namespace views {
+KeyEvent::KeyEvent(EventType type, app::KeyboardCode keyboard_code,
+ int event_flags, int repeat_count, int message_flags,
+ UINT message)
+ : Event(type, event_flags),
+ keyboard_code_(keyboard_code),
+ repeat_count_(repeat_count),
+ message_flags_(message_flags),
+ message_(message) {
+}
+
int Event::GetWindowsFlags() const {
// TODO: need support for x1/x2.
int result = 0;
« views/event_gtk.cc ('K') | « views/event_gtk.cc ('k') | views/event_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698