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

Unified Diff: chrome/browser/jsmessage_box_handler.cc

Issue 15023: Focus the textfield when doing a JS prompt (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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/browser/jsmessage_box_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/jsmessage_box_handler.cc
===================================================================
--- chrome/browser/jsmessage_box_handler.cc (revision 7026)
+++ chrome/browser/jsmessage_box_handler.cc (working copy)
@@ -152,6 +152,12 @@
return message_box_view_;
}
+views::View* JavascriptMessageBoxHandler::GetInitiallyFocusedView() const {
+ if (message_box_view_->text_box())
+ return message_box_view_->text_box();
+ return views::AppModalDialogDelegate::GetInitiallyFocusedView();
+}
+
///////////////////////////////////////////////////////////////////////////////
// JavascriptMessageBoxHandler, private:
« no previous file with comments | « chrome/browser/jsmessage_box_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698