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

Unified Diff: chrome/browser/ui/views/frame/browser_view.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
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/ime/ime_window_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index fe8c83ef5cc8235e1cb3d251bbbdb321ce54450e..6601e47ad56fc08b565fa2e8f55bf5e69a6f720a 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1935,7 +1935,8 @@ void BrowserView::Layout() {
views::View::Layout();
// TODO(jamescook): Why was this in the middle of layout code?
- toolbar_->location_bar()->omnibox_view()->SetFocusable(IsToolbarVisible());
+ toolbar_->location_bar()->omnibox_view()->SetFocusBehavior(
+ IsToolbarVisible() ? FocusBehavior::ALWAYS : FocusBehavior::NEVER);
}
void BrowserView::ViewHierarchyChanged(
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/ime/ime_window_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698