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

Unified Diff: chrome/browser/ui/views/translate/translate_bubble_view.cc

Issue 2827433005: return initial focused view (Closed)
Patch Set: Created 3 years, 8 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/browser/ui/views/translate/translate_bubble_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/translate/translate_bubble_view.cc
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.cc b/chrome/browser/ui/views/translate/translate_bubble_view.cc
index 140c1181340146d832975d29ab6638d2af3f8288..80e29cbab7900d21b5fdbb8bbfeecc210fc58338 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.cc
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.cc
@@ -188,6 +188,10 @@ void TranslateBubbleView::ButtonPressed(views::Button* sender,
HandleButtonPressed(static_cast<ButtonID>(sender->id()));
}
+views::View* TranslateBubbleView::GetInitiallyFocusedView() {
+ return GetCurrentView()->GetNextFocusableView();
+}
+
bool TranslateBubbleView::ShouldShowCloseButton() const {
return Use2016Q2UI();
}
« no previous file with comments | « chrome/browser/ui/views/translate/translate_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698