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

Unified Diff: chrome/views/controls/button/native_button.cc

Issue 45042: Fix for native button focus bug (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/views/controls/button/native_button.h ('k') | chrome/views/controls/button/native_button_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/controls/button/native_button.cc
===================================================================
--- chrome/views/controls/button/native_button.cc (revision 12376)
+++ chrome/views/controls/button/native_button.cc (working copy)
@@ -138,6 +138,13 @@
return false;
}
+void NativeButton::Focus() {
+ Button::Focus();
+ // Forward the focus to the wrapper.
+ if (native_wrapper_)
+ native_wrapper_->SetFocus();
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeButton, protected:
« no previous file with comments | « chrome/views/controls/button/native_button.h ('k') | chrome/views/controls/button/native_button_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698