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

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

Issue 1348503003: One AXObjectCache per frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix issues in AutomationApiTest.Events Created 5 years, 2 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class AXObject; 44 class AXObject;
45 class AXObjectCache; 45 class AXObjectCache;
46 class AXObjectCacheImpl; 46 class AXObjectCacheImpl;
47 class Element; 47 class Element;
48 class FrameView; 48 class FrameView;
49 class IntPoint; 49 class IntPoint;
50 class NameSource; 50 class NameSource;
51 class Node; 51 class Node;
52 class LayoutObject; 52 class LayoutObject;
53 class ScrollableArea; 53 class ScrollableArea;
54 class Widget;
55 54
56 typedef unsigned AXID; 55 typedef unsigned AXID;
57 56
58 enum AccessibilityRole { 57 enum AccessibilityRole {
59 UnknownRole = 0, 58 UnknownRole = 0,
60 AlertDialogRole, 59 AlertDialogRole,
61 AlertRole, 60 AlertRole,
62 AnnotationRole, // No mapping to ARIA role 61 AnnotationRole, // No mapping to ARIA role
63 ApplicationRole, 62 ApplicationRole,
64 ArticleRole, 63 ArticleRole,
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 virtual double estimatedLoadingProgress() const { return 0; } 797 virtual double estimatedLoadingProgress() const { return 0; }
799 AXObject* focusedUIElement() const; 798 AXObject* focusedUIElement() const;
800 799
801 // DOM and layout tree access. 800 // DOM and layout tree access.
802 virtual Node* node() const { return 0; } 801 virtual Node* node() const { return 0; }
803 virtual LayoutObject* layoutObject() const { return 0; } 802 virtual LayoutObject* layoutObject() const { return 0; }
804 virtual Document* document() const; 803 virtual Document* document() const;
805 virtual FrameView* documentFrameView() const; 804 virtual FrameView* documentFrameView() const;
806 virtual Element* anchorElement() const { return 0; } 805 virtual Element* anchorElement() const { return 0; }
807 virtual Element* actionElement() const { return 0; } 806 virtual Element* actionElement() const { return 0; }
808 virtual Widget* widgetForAttachmentView() const { return 0; }
809 String language() const; 807 String language() const;
810 bool hasAttribute(const QualifiedName&) const; 808 bool hasAttribute(const QualifiedName&) const;
811 const AtomicString& getAttribute(const QualifiedName&) const; 809 const AtomicString& getAttribute(const QualifiedName&) const;
812 810
813 // Methods that retrieve or manipulate the current selection. 811 // Methods that retrieve or manipulate the current selection.
814 812
815 // Get the current selection from anywhere in the accessibility tree. 813 // Get the current selection from anywhere in the accessibility tree.
816 virtual AXRange selection() const { return AXRange(); } 814 virtual AXRange selection() const { return AXRange(); }
817 // Gets only the start and end offsets of the selection computed using the 815 // Gets only the start and end offsets of the selection computed using the
818 // current object as the starting point. Returns a null selection if there i s 816 // current object as the starting point. Returns a null selection if there i s
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 918
921 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 919 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
922 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 920 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
923 921
924 } // namespace blink 922 } // namespace blink
925 923
926 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); 924 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason);
927 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); 925 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource);
928 926
929 #endif // AXObject_h 927 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698