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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.cc

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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
Index: chrome/browser/ui/views/toolbar/toolbar_button.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
index 187335480f04fffbcd25ede11a8e61b24c3bc712..d910b3720f205198a7653014b41fed38c8874085 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
@@ -47,8 +47,7 @@ ToolbarButton::ToolbarButton(Profile* profile,
ToolbarButton::~ToolbarButton() {}
void ToolbarButton::Init() {
- SetFocusable(false);
- SetAccessibilityFocusable(true);
+ SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
image()->EnableCanvasFlippingForRTLUI(true);
}
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_action_view.cc ('k') | chrome/browser/ui/views/website_settings/chosen_object_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698