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

Unified Diff: views/event.h

Issue 235025: Use windows keycodes under linux (and all non-windows platforms). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/controls/button/custom_button.cc ('k') | views/event_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/event.h
===================================================================
--- views/event.h (revision 27238)
+++ views/event.h (working copy)
@@ -244,9 +244,13 @@
// Create a new key event
KeyEvent(EventType type, int ch, int repeat_count, int message_flags);
#elif defined(OS_LINUX)
- KeyEvent(GdkEventKey* event, bool make_lower_case);
+ explicit KeyEvent(GdkEventKey* event);
#endif
+ // This returns a VKEY_ value as defined in base/keyboard_codes.h which is
+ // the Windows value.
+ // On GTK, you can use the methods in keyboard_code_conversion_gtk.cc to
+ // convert this value back to a GDK value if needed.
int GetCharacter() const {
return character_;
}
« no previous file with comments | « views/controls/button/custom_button.cc ('k') | views/event_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698