Chromium Code Reviews

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

Issue 5988010: focus reverse traversal was not working for TextfieldViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 9 years, 12 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
Index: views/controls/textfield/native_textfield_win.cc
diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc
index 581e40f2bb0d1316e40c9e8586f07e51b9aafe9a..8e7f9f536abe3326f43d32071b2b2a9fbee50459 100644
--- a/views/controls/textfield/native_textfield_win.cc
+++ b/views/controls/textfield/native_textfield_win.cc
@@ -274,10 +274,11 @@ void NativeTextfieldWin::UpdateVerticalMargins() {
NOTIMPLEMENTED();
}
-void NativeTextfieldWin::SetFocus() {
+bool NativeTextfieldWin::SetFocus() {
// Focus the associated HWND.
//container_view_->Focus();
::SetFocus(m_hWnd);
+ return true;
}
View* NativeTextfieldWin::GetView() {
@@ -302,6 +303,23 @@ bool NativeTextfieldWin::IsIMEComposing() const {
return composition_size > 0;
}
+bool NativeTextfieldWin::HandleKeyPressed(const views::KeyEvent& e) {
+ return false;
+}
+
+bool NativeTextfieldWin::HandleKeyReleased(const views::KeyEvent& e) {
+ return false;
+}
+
+void NativeTextfieldWin::HandleWillGainFocus() {
+}
+
+void NativeTextfieldWin::HandleDidGainFocus() {
+}
+
+void NativeTextfieldWin::HandleWillLoseFocus() {
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeTextfieldWin, menus::SimpleMenuModel::Delegate implementation:

Powered by Google App Engine