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

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: sync Created 9 years, 12 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.cc
diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc
index 223a8b55661f8d4b02865bf994f4c8ba9850b043..d74ff2c006e2d1539df4d47793a24edd15eef308 100644
--- a/views/controls/textfield/native_textfield_win.cc
+++ b/views/controls/textfield/native_textfield_win.cc
@@ -275,10 +275,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() {
@@ -303,6 +304,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:
« no previous file with comments | « views/controls/textfield/native_textfield_win.h ('k') | views/controls/textfield/native_textfield_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698