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

Unified Diff: chrome/browser/browser_accessibility_manager.cc

Issue 2121004: Windows accessibility improvements: 1. All WebKit roles are now passed to the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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/browser_accessibility_manager.h ('k') | chrome/browser/browser_accessibility_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_accessibility_manager.cc
===================================================================
--- chrome/browser/browser_accessibility_manager.cc (revision 47913)
+++ chrome/browser/browser_accessibility_manager.cc (working copy)
@@ -30,9 +30,12 @@
BrowserAccessibilityManager::BrowserAccessibilityManager(
HWND parent_hwnd,
const webkit_glue::WebAccessibility& src,
+ BrowserAccessibilityDelegate* delegate,
BrowserAccessibilityFactory* factory)
: parent_hwnd_(parent_hwnd),
- factory_(factory) {
+ delegate_(delegate),
+ factory_(factory),
+ focus_(NULL) {
HRESULT hr = ::CreateStdAccessibleObject(
parent_hwnd_, OBJID_WINDOW, IID_IAccessible,
reinterpret_cast<void **>(&window_iaccessible_));
@@ -82,6 +85,17 @@
return NULL;
}
+void BrowserAccessibilityManager::SetFocus(const BrowserAccessibility& node) {
+ if (delegate_)
+ delegate_->SetAccessibilityFocus(node.renderer_id());
+}
+
+void BrowserAccessibilityManager::DoDefaultAction(
+ const BrowserAccessibility& node) {
+ if (delegate_)
+ delegate_->AccessibilityDoDefaultAction(node.renderer_id());
+}
+
void BrowserAccessibilityManager::OnAccessibilityFocusChange(int renderer_id) {
base::hash_map<int, LONG>::iterator iter =
renderer_id_to_child_id_map_.find(renderer_id);
« no previous file with comments | « chrome/browser/browser_accessibility_manager.h ('k') | chrome/browser/browser_accessibility_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698