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

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

Issue 1713723002: Implement accessibility support for CSS-transformed iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn build Created 4 years, 8 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, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 32
33 #include "core/editing/VisiblePosition.h" 33 #include "core/editing/VisiblePosition.h"
34 #include "modules/ModulesExport.h" 34 #include "modules/ModulesExport.h"
35 #include "platform/geometry/FloatQuad.h" 35 #include "platform/geometry/FloatQuad.h"
36 #include "platform/geometry/LayoutRect.h" 36 #include "platform/geometry/LayoutRect.h"
37 #include "platform/graphics/Color.h" 37 #include "platform/graphics/Color.h"
38 #include "platform/inspector_protocol/TypeBuilder.h" 38 #include "platform/inspector_protocol/TypeBuilder.h"
39 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 class SkMatrix44;
43
42 namespace blink { 44 namespace blink {
43 45
44 class AXObject; 46 class AXObject;
45 class AXObjectCache; 47 class AXObjectCache;
46 class AXObjectCacheImpl; 48 class AXObjectCacheImpl;
47 class Element; 49 class Element;
48 class FrameView; 50 class FrameView;
49 class IntPoint; 51 class IntPoint;
50 class NameSource; 52 class NameSource;
51 class Node; 53 class Node;
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 const AtomicString& containerLiveRegionRelevant() const; 788 const AtomicString& containerLiveRegionRelevant() const;
787 bool containerLiveRegionAtomic() const; 789 bool containerLiveRegionAtomic() const;
788 bool containerLiveRegionBusy() const; 790 bool containerLiveRegionBusy() const;
789 791
790 // Location and click point in frame-relative coordinates. 792 // Location and click point in frame-relative coordinates.
791 virtual LayoutRect elementRect() const { return m_explicitElementRect; } 793 virtual LayoutRect elementRect() const { return m_explicitElementRect; }
792 void setElementRect(LayoutRect r) { m_explicitElementRect = r; } 794 void setElementRect(LayoutRect r) { m_explicitElementRect = r; }
793 virtual void markCachedElementRectDirty() const; 795 virtual void markCachedElementRectDirty() const;
794 virtual IntPoint clickPoint(); 796 virtual IntPoint clickPoint();
795 797
798 // Transformation relative to the parent frame, if local (otherwise returns identity).
799 virtual SkMatrix44 transformFromLocalParentFrame() const;
800
796 // Hit testing. 801 // Hit testing.
797 // Called on the root AX object to return the deepest available element. 802 // Called on the root AX object to return the deepest available element.
798 virtual AXObject* accessibilityHitTest(const IntPoint&) const { return 0; } 803 virtual AXObject* accessibilityHitTest(const IntPoint&) const { return 0; }
799 // Called on the AX object after the layout tree determines which is the rig ht AXLayoutObject. 804 // Called on the AX object after the layout tree determines which is the rig ht AXLayoutObject.
800 virtual AXObject* elementAccessibilityHitTest(const IntPoint&) const; 805 virtual AXObject* elementAccessibilityHitTest(const IntPoint&) const;
801 806
802 // High-level accessibility tree access. Other modules should only use these functions. 807 // High-level accessibility tree access. Other modules should only use these functions.
803 const AXObjectVector& children(); 808 const AXObjectVector& children();
804 AXObject* parentObject() const; 809 AXObject* parentObject() const;
805 AXObject* parentObjectIfExists() const; 810 AXObject* parentObjectIfExists() const;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 955 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
951 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 956 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
952 957
953 } // namespace blink 958 } // namespace blink
954 959
955 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); 960 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason);
956 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); 961 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource);
957 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); 962 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource);
958 963
959 #endif // AXObject_h 964 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698