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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h

Issue 2893683002: Selection follows focus/activedescendant in single selection containers (Closed)
Patch Set: Last test to fix we hope Created 3 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 /* 2 /*
3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Nuanti Ltd. 4 * Copyright (C) 2008 Nuanti Ltd.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 701
702 // High-level accessibility tree access. Other modules should only use these 702 // High-level accessibility tree access. Other modules should only use these
703 // functions. 703 // functions.
704 const AXObjectVector& Children(); 704 const AXObjectVector& Children();
705 AXObjectImpl* ParentObject() const; 705 AXObjectImpl* ParentObject() const;
706 AXObjectImpl* ParentObjectIfExists() const; 706 AXObjectImpl* ParentObjectIfExists() const;
707 virtual AXObjectImpl* ComputeParent() const = 0; 707 virtual AXObjectImpl* ComputeParent() const = 0;
708 virtual AXObjectImpl* ComputeParentIfExists() const { return 0; } 708 virtual AXObjectImpl* ComputeParentIfExists() const { return 0; }
709 AXObjectImpl* CachedParentObject() const { return parent_; } 709 AXObjectImpl* CachedParentObject() const { return parent_; }
710 AXObjectImpl* ParentObjectUnignored() const; 710 AXObjectImpl* ParentObjectUnignored() const;
711 AXObjectImpl* ContainerWidget() const;
712 bool IsContainerWidget() const;
711 713
712 // Low-level accessibility tree exploration, only for use within the 714 // Low-level accessibility tree exploration, only for use within the
713 // accessibility module. 715 // accessibility module.
714 virtual AXObjectImpl* RawFirstChild() const { return 0; } 716 virtual AXObjectImpl* RawFirstChild() const { return 0; }
715 virtual AXObjectImpl* RawNextSibling() const { return 0; } 717 virtual AXObjectImpl* RawNextSibling() const { return 0; }
716 virtual void AddChildren() {} 718 virtual void AddChildren() {}
717 virtual bool CanHaveChildren() const { return true; } 719 virtual bool CanHaveChildren() const { return true; }
718 bool HasChildren() const { return have_children_; } 720 bool HasChildren() const { return have_children_; }
719 virtual void UpdateChildrenIfNecessary(); 721 virtual void UpdateChildrenIfNecessary();
720 virtual bool NeedsToUpdateChildren() const { return false; } 722 virtual bool NeedsToUpdateChildren() const { return false; }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 885
884 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); 886 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true);
885 887
886 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 888 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
887 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ 889 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \
888 object.predicate) 890 object.predicate)
889 891
890 } // namespace blink 892 } // namespace blink
891 893
892 #endif // AXObjectImpl_h 894 #endif // AXObjectImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698