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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class Created 7 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
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 64cdc04ed63cc020151b1ca1b0341054cbb538e3..61ef546800df90427bffc9c7cc02168fe8fde625 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -479,7 +479,7 @@ AutofillDialogViews::AccountChooser::AccountChooser(
gfx::Insets insets = GetInsets();
menu_button_->SetFocusPainter(
views::Painter::CreateDashedFocusPainterWithInsets(insets));
- menu_button_->set_focusable(true);
+ menu_button_->SetFocusable(true);
AddChildView(menu_button_);
link_->set_listener(this);
@@ -937,7 +937,7 @@ AutofillDialogViews::SuggestedButton::SuggestedButton(
-kFocusBorderWidth, -kFocusBorderWidth);
SetFocusPainter(
views::Painter::CreateDashedFocusPainterWithInsets(insets));
- set_focusable(true);
+ SetFocusable(true);
}
AutofillDialogViews::SuggestedButton::~SuggestedButton() {}

Powered by Google App Engine
This is Rietveld 408576698