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

Unified Diff: views/controls/textfield/native_textfield_win.h

Issue 6487002: Add a new constructor to KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/controls/textfield/native_textfield_win.h
===================================================================
--- views/controls/textfield/native_textfield_win.h (revision 74437)
+++ views/controls/textfield/native_textfield_win.h (working copy)
@@ -187,7 +187,9 @@
// Helper function for OnChar() and OnKeyDown() that handles keystrokes that
// could change the text in the edit.
- void HandleKeystroke(UINT message, TCHAR key, UINT repeat_count, UINT flags);
+ // Note: This function assumes GetCurrentMessage() returns a MSG with
+ // msg > WM_KEYFIRST and < WM_KEYLAST.
+ void HandleKeystroke();
// Every piece of code that can change the edit should call these functions
// before and after the change. These functions determine if anything
« no previous file with comments | « views/controls/textfield/native_textfield_views_unittest.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698