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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.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/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 4001583a77450e3abad626e977ec86a285b96b82..edd4ba175d5fbe823598ab4f64250d84b498be81 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -269,7 +269,7 @@ void LocationBarView::Init() {
omnibox_view_ = new OmniboxViewViews(this, profile_, command_updater(),
is_popup_mode_, this, font_list);
omnibox_view_->Init();
- omnibox_view_->set_focusable(true);
+ omnibox_view_->SetFocusable(true);
AddChildView(omnibox_view_);
// Initialize the inline autocomplete view which is visible only when IME is
@@ -307,7 +307,7 @@ void LocationBarView::Init() {
mic_search_view_ = new views::ImageButton(this);
mic_search_view_->set_id(VIEW_ID_MIC_SEARCH_BUTTON);
- mic_search_view_->set_accessibility_focusable(true);
+ mic_search_view_->SetAccessibilityFocusable(true);
mic_search_view_->SetTooltipText(
l10n_util::GetStringUTF16(IDS_TOOLTIP_MIC_SEARCH));
mic_search_view_->SetImage(

Powered by Google App Engine
This is Rietveld 408576698