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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 1937873002: Adds AXExpandedChanged for general roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comment Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 AccessibilityExpanded expanded = isExpanded(); 2015 AccessibilityExpanded expanded = isExpanded();
2016 if (!expanded) 2016 if (!expanded)
2017 return; 2017 return;
2018 2018
2019 if (roleValue() == RowRole || roleValue() == TreeItemRole) { 2019 if (roleValue() == RowRole || roleValue() == TreeItemRole) {
2020 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo wExpanded; 2020 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo wExpanded;
2021 if (expanded == ExpandedCollapsed) 2021 if (expanded == ExpandedCollapsed)
2022 notification = AXObjectCacheImpl::AXRowCollapsed; 2022 notification = AXObjectCacheImpl::AXRowCollapsed;
2023 2023
2024 axObjectCache().postNotification(this, notification); 2024 axObjectCache().postNotification(this, notification);
2025 } else {
2026 axObjectCache().postNotification(this, AXObjectCacheImpl::AXExpandedChan ged);
2025 } 2027 }
2026 } 2028 }
2027 2029
2028 void AXLayoutObject::textChanged() 2030 void AXLayoutObject::textChanged()
2029 { 2031 {
2030 if (!m_layoutObject) 2032 if (!m_layoutObject)
2031 return; 2033 return;
2032 2034
2033 Settings* settings = getDocument()->settings(); 2035 Settings* settings = getDocument()->settings();
2034 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue() == StaticTextRole) 2036 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue() == StaticTextRole)
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 if (label && label->layoutObject()) { 2471 if (label && label->layoutObject()) {
2470 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe ct(); 2472 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe ct();
2471 result.unite(labelRect); 2473 result.unite(labelRect);
2472 } 2474 }
2473 } 2475 }
2474 2476
2475 return result; 2477 return result;
2476 } 2478 }
2477 2479
2478 } // namespace blink 2480 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/AXObjectCache.h ('k') | third_party/WebKit/Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698