summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc13
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.h8
2 files changed, 15 insertions, 6 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
index ef7d49d..e304418 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
@@ -157,7 +157,7 @@ AutocompleteEditViewGtk::AutocompleteEditViewGtk(
CommandUpdater* command_updater,
bool popup_window_mode,
#if defined(TOOLKIT_VIEWS)
- const views::View* location_bar)
+ views::View* location_bar)
#else
GtkWidget* location_bar)
#endif
@@ -183,7 +183,9 @@ AutocompleteEditViewGtk::AutocompleteEditViewGtk(
text_selected_during_click_(false),
text_view_focused_before_button_press_(false),
#endif
-#if !defined(TOOLKIT_VIEWS)
+#if defined(TOOLKIT_VIEWS)
+ location_bar_view_(location_bar),
+#else
theme_provider_(GtkThemeProvider::GetFrom(profile)),
#endif
enter_was_pressed_(false),
@@ -882,7 +884,7 @@ AutocompleteEditView* AutocompleteEditViewGtk::Create(
Profile* profile,
CommandUpdater* command_updater,
bool popup_window_mode,
- const views::View* location_bar) {
+ views::View* location_bar) {
if (views::NativeTextfieldViews::IsTextfieldViewsEnabled()) {
AutocompleteEditViewViews* autocomplete =
new AutocompleteEditViewViews(controller,
@@ -1222,6 +1224,11 @@ gboolean AutocompleteEditViewGtk::HandleKeyPress(GtkWidget* widget,
g_signal_stop_emission(widget, signal_id, 0);
}
+#if defined(TOOLKIT_VIEWS)
+ location_bar_view_->NotifyAccessibilityEvent(
+ AccessibilityTypes::EVENT_TEXT_CHANGED);
+#endif
+
return result;
}
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
index d101fe9..23738e2 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
@@ -74,7 +74,7 @@ class AutocompleteEditViewGtk : public AutocompleteEditView,
CommandUpdater* command_updater,
bool popup_window_mode,
#if defined(TOOLKIT_VIEWS)
- const views::View* location_bar
+ views::View* location_bar
#else
GtkWidget* location_bar
#endif
@@ -157,7 +157,7 @@ class AutocompleteEditViewGtk : public AutocompleteEditView,
Profile* profile,
CommandUpdater* command_updater,
bool popup_window_mode,
- const views::View* location_bar);
+ views::View* location_bar);
#endif
// Overridden from NotificationObserver:
@@ -460,7 +460,9 @@ class AutocompleteEditViewGtk : public AutocompleteEditView,
bool text_view_focused_before_button_press_;
#endif
-#if !defined(TOOLKIT_VIEWS)
+#if defined(TOOLKIT_VIEWS)
+ views::View* location_bar_view_;
+#else
// Supplies colors, et cetera.
GtkThemeProvider* theme_provider_;