Chromium Code Reviews

Unified Diff: views/controls/textfield/textfield.cc

Issue 113981: Get textfield to compile on linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/textfield.cc
===================================================================
--- views/controls/textfield/textfield.cc (revision 17146)
+++ views/controls/textfield/textfield.cc (working copy)
@@ -159,12 +159,22 @@
// static
bool Textfield::IsKeystrokeEnter(const Keystroke& key) {
+#if defined(OS_WIN)
return key.key == VK_RETURN;
+#else
+ NOTIMPLEMENTED();
+ return false;
+#endif
}
// static
bool Textfield::IsKeystrokeEscape(const Keystroke& key) {
+#if defined(OS_WIN)
return key.key == VK_ESCAPE;
+#else
+ NOTIMPLEMENTED();
+ return false;
+#endif
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine