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

Unified Diff: chrome/views/message_box_view.cc

Issue 8786: Fix default focused button in dialogs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/message_box_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/message_box_view.cc
===================================================================
--- chrome/views/message_box_view.cc (revision 4259)
+++ chrome/views/message_box_view.cc (working copy)
@@ -80,24 +80,12 @@
if (child == this && is_add) {
if (prompt_field_)
prompt_field_->SelectAll();
- MessageLoop::current()->PostTask(FROM_HERE,
- focus_grabber_factory_.NewRunnableMethod(
- &MessageBoxView::FocusFirstFocusableControl));
}
}
///////////////////////////////////////////////////////////////////////////////
// MessageBoxView, private:
-void MessageBoxView::FocusFirstFocusableControl() {
- if (prompt_field_)
- prompt_field_->RequestFocus();
- else if (check_box_)
- check_box_->RequestFocus();
- else
- RequestFocus();
-}
-
void MessageBoxView::Init(int dialog_flags,
const std::wstring& default_prompt) {
message_label_->SetMultiLine(true);
« no previous file with comments | « chrome/views/message_box_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698