summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 00:31:36 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 00:31:36 +0000
commit3e02b9797e7336eca80aac743b8cb08c74cbc027 (patch)
tree58378296bff0a1122bc7615a50a51a9689428a8b /views/controls/textfield
parenta9b7d73f0d0b81d4455b192f68d44c670e02ec44 (diff)
downloadchromium_src-3e02b9797e7336eca80aac743b8cb08c74cbc027.zip
chromium_src-3e02b9797e7336eca80aac743b8cb08c74cbc027.tar.gz
chromium_src-3e02b9797e7336eca80aac743b8cb08c74cbc027.tar.bz2
Get textfield to compile on linux.
BUG=none TEST=none TBR=ben Review URL: http://codereview.chromium.org/113981 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/textfield')
-rw-r--r--views/controls/textfield/native_textfield_gtk.h2
-rw-r--r--views/controls/textfield/textfield.cc10
2 files changed, 11 insertions, 1 deletions
diff --git a/views/controls/textfield/native_textfield_gtk.h b/views/controls/textfield/native_textfield_gtk.h
index 0633591..ce89e55 100644
--- a/views/controls/textfield/native_textfield_gtk.h
+++ b/views/controls/textfield/native_textfield_gtk.h
@@ -43,4 +43,4 @@ class NativeTextfieldGtk : public NativeControlGtk,
} // namespace views
-#endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ \ No newline at end of file
+#endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
diff --git a/views/controls/textfield/textfield.cc b/views/controls/textfield/textfield.cc
index 79237f8..b7d64e6 100644
--- a/views/controls/textfield/textfield.cc
+++ b/views/controls/textfield/textfield.cc
@@ -159,12 +159,22 @@ void Textfield::SyncText() {
// 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
}
////////////////////////////////////////////////////////////////////////////////