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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 315663002: Fix omnibox focus ring regression on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/location_bar/location_bar_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/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index b6e2cb0305cd2cbd9c82aaa7398f29bdd1f16078..36771b92b0e2149ab5f23bb7c5c6a91ab3a8e8e1 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1441,6 +1441,12 @@ void LocationBarView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
popup->UpdatePopupAppearance();
}
+void LocationBarView::OnFocus() {
+ // Explicitly focus the omnibox so a focus ring will be displayed around it on
+ // Windows.
+ omnibox_view_->SetFocus();
+}
+
void LocationBarView::OnPaint(gfx::Canvas* canvas) {
View::OnPaint(canvas);
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698