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

Unified Diff: chrome/browser/gtk/location_bar_view_gtk.cc

Issue 402099: Add an accessibility API for events raised outside of the web content. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 11 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/gtk/location_bar_view_gtk.cc
===================================================================
--- chrome/browser/gtk/location_bar_view_gtk.cc (revision 37511)
+++ chrome/browser/gtk/location_bar_view_gtk.cc (working copy)
@@ -19,6 +19,7 @@
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/command_updater.h"
+#include "chrome/browser/extensions/extension_accessibility_api_constants.h"
#include "chrome/browser/extensions/extension_action_context_menu_model.h"
#include "chrome/browser/extensions/extension_browser_event_router.h"
#include "chrome/browser/extensions/extension_tabs_module.h"
@@ -32,6 +33,7 @@
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "chrome/common/accessibility_events.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_action.h"
#include "chrome/common/gtk_util.h"
@@ -449,6 +451,14 @@
}
void LocationBarViewGtk::OnSetFocus() {
+ AccessibilityTextBoxInfo info(
+ profile_,
+ l10n_util::GetStringUTF8(IDS_ACCNAME_LOCATION).c_str(),
+ false);
+ NotificationService::current()->Notify(
+ NotificationType::ACCESSIBILITY_CONTROL_FOCUSED,
+ Source<Profile>(profile_),
+ Details<AccessibilityTextBoxInfo>(&info));
}
SkBitmap LocationBarViewGtk::GetFavIcon() const {
« no previous file with comments | « chrome/browser/gtk/accessible_widget_helper_gtk.cc ('k') | chrome/browser/gtk/options/advanced_contents_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698