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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 2001433002: Update appearance of omnibox focus for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dont break ios Created 4 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
Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index dd9cdba9a22e43272801b813c2f35418a4ff7147..2884f4347de0ee352540413c93e407cd7dc85df0 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -46,6 +46,7 @@
#include "ui/base/ime/text_input_client.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/compositor/layer.h"
#include "ui/events/event.h"
@@ -891,6 +892,10 @@ void OmniboxViewViews::OnBlur() {
// Make sure the beginning of the text is visible.
SelectRange(gfx::Range(0));
+
+ // The location bar needs to repaint without a focus ring.
+ if (ui::MaterialDesignController::IsModeMaterial())
+ location_bar_view_->SchedulePaint();
}
bool OmniboxViewViews::IsCommandIdEnabled(int command_id) const {

Powered by Google App Engine
This is Rietveld 408576698