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

Unified Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add forgotten file back Created 7 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 | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/accessibility/AccessibilityImageMapLink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index ef762976b95a152b3b600ce7e7d21d23485fd85f..69b2ad6a79408defd117fb2ad3c9f7789013fb6a 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -728,18 +728,6 @@ void AXObjectCache::selectedChildrenChanged(RenderObject* renderer)
postNotification(renderer, AXSelectedChildrenChanged, false);
}
-void AXObjectCache::nodeTextChangeNotification(Node* node, AXTextChange textChange, unsigned offset, const String& text)
-{
- if (!node)
- return;
-
- stopCachingComputedObjectAttributes();
-
- // Delegate on the right platform
- AccessibilityObject* obj = getOrCreate(node);
- nodeTextChangePlatformNotification(obj, textChange, offset, text);
-}
-
void AXObjectCache::handleScrollbarUpdate(ScrollView* view)
{
if (!view)
@@ -945,44 +933,17 @@ void AXObjectCache::postPlatformNotification(AccessibilityObject* obj, AXNotific
ChromeClient& client = obj->documentFrameView()->frame()->page()->chrome().client();
- switch (notification) {
- case AXActiveDescendantChanged:
- if (!obj->document()->focusedElement() || (obj->node() != obj->document()->focusedElement()))
- break;
-
+ if (notification == AXActiveDescendantChanged
+ && obj->document()->focusedElement()
+ && obj->node() == obj->document()->focusedElement()) {
// Calling handleFocusedUIElementChanged will focus the new active
// descendant and send the AXFocusedUIElementChanged notification.
handleFocusedUIElementChanged(0, obj->document()->focusedElement());
- break;
- case AXAriaAttributeChanged:
- case AXAutocorrectionOccured:
- case AXCheckedStateChanged:
- case AXChildrenChanged:
- case AXFocusedUIElementChanged:
- case AXInvalidStatusChanged:
- case AXLayoutComplete:
- case AXLiveRegionChanged:
- case AXLoadComplete:
- case AXMenuListItemSelected:
- case AXMenuListValueChanged:
- case AXRowCollapsed:
- case AXRowCountChanged:
- case AXRowExpanded:
- case AXScrolledToAnchor:
- case AXSelectedChildrenChanged:
- case AXSelectedTextChanged:
- case AXTextChanged:
- case AXValueChanged:
- break;
}
client.postAccessibilityNotification(obj, notification);
}
-void AXObjectCache::nodeTextChangePlatformNotification(AccessibilityObject*, AXTextChange, unsigned, const String&)
-{
-}
-
void AXObjectCache::handleFocusedUIElementChanged(Node*, Node* newFocusedNode)
{
if (!newFocusedNode)
« no previous file with comments | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/accessibility/AccessibilityImageMapLink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698