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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 468723005: Send accessibility notifications to the frame client, not view client. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « no previous file | public/web/WebFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 5c630a0903726bb82827764b04596e0e665ea085..31d3f10b02b151c8c9b857c48b94404d07fd522c 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -664,8 +664,14 @@ void ChromeClientImpl::setCursorForPlugin(const WebCursorInfo& cursor)
void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCache::AXNotification notification)
{
// Alert assistive technology about the accessibility object notification.
- if (!obj)
+ if (!obj || !obj->documentFrameView())
return;
+
+ WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(obj->documentFrameView()->frame());
+ if (webframe && webframe->client())
+ webframe->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEvent(notification));
+
+ // FIXME: delete these lines once Chrome only uses the frame client interface, above.
if (m_webView->client())
m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEvent(notification));
}
« no previous file with comments | « no previous file | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698