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

Side by Side Diff: Source/modules/accessibility/AXObjectCacheImpl.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014, Google Inc. All rights reserved. 2 * Copyright (C) 2014, Google 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl); 58 WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl);
59 public: 59 public:
60 static PassOwnPtrWillBeRawPtr<AXObjectCache> create(Document&); 60 static PassOwnPtrWillBeRawPtr<AXObjectCache> create(Document&);
61 61
62 explicit AXObjectCacheImpl(Document&); 62 explicit AXObjectCacheImpl(Document&);
63 ~AXObjectCacheImpl(); 63 ~AXObjectCacheImpl();
64 DECLARE_VIRTUAL_TRACE(); 64 DECLARE_VIRTUAL_TRACE();
65 65
66 AXObject* focusedUIElementForPage(const Page*); 66 AXObject* focusedUIElementForPage(const Page*);
67 67
68 virtual void dispose() override; 68 void dispose() override;
69 69
70 virtual void selectionChanged(Node*) override; 70 void selectionChanged(Node*) override;
71 virtual void childrenChanged(Node*) override; 71 void childrenChanged(Node*) override;
72 virtual void childrenChanged(LayoutObject*) override; 72 void childrenChanged(LayoutObject*) override;
73 virtual void checkedStateChanged(Node*) override; 73 void checkedStateChanged(Node*) override;
74 virtual void listboxOptionStateChanged(HTMLOptionElement*); 74 virtual void listboxOptionStateChanged(HTMLOptionElement*);
75 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*); 75 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*);
76 virtual void listboxActiveIndexChanged(HTMLSelectElement*); 76 virtual void listboxActiveIndexChanged(HTMLSelectElement*);
77 77
78 virtual void remove(LayoutObject*) override; 78 void remove(LayoutObject*) override;
79 virtual void remove(Node*) override; 79 void remove(Node*) override;
80 virtual void remove(Widget*) override; 80 void remove(Widget*) override;
81 virtual void remove(AbstractInlineTextBox*) override; 81 void remove(AbstractInlineTextBox*) override;
82 82
83 virtual const Element* rootAXEditableElement(const Node*) override; 83 const Element* rootAXEditableElement(const Node*) override;
84 84
85 // Called by a node when text or a text equivalent (e.g. alt) attribute is c hanged. 85 // Called by a node when text or a text equivalent (e.g. alt) attribute is c hanged.
86 virtual void textChanged(LayoutObject*) override; 86 void textChanged(LayoutObject*) override;
87 // Called when a node has just been attached, so we can make sure we have th e right subclass of AXObject. 87 // Called when a node has just been attached, so we can make sure we have th e right subclass of AXObject.
88 virtual void updateCacheAfterNodeIsAttached(Node*) override; 88 void updateCacheAfterNodeIsAttached(Node*) override;
89 89
90 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) override; 90 void handleAttributeChanged(const QualifiedName& attrName, Element*) overrid e;
91 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo cusedNode) override; 91 void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFocusedNod e) override;
92 virtual void handleInitialFocus() override; 92 void handleInitialFocus() override;
93 virtual void handleTextFormControlChanged(Node*) override; 93 void handleTextFormControlChanged(Node*) override;
94 virtual void handleEditableTextContentChanged(Node*) override; 94 void handleEditableTextContentChanged(Node*) override;
95 virtual void handleValueChanged(Node*) override; 95 void handleValueChanged(Node*) override;
96 virtual void handleUpdateActiveMenuOption(LayoutMenuList*, int optionIndex) override; 96 void handleUpdateActiveMenuOption(LayoutMenuList*, int optionIndex) override ;
97 virtual void didShowMenuListPopup(LayoutMenuList*) override; 97 void didShowMenuListPopup(LayoutMenuList*) override;
98 virtual void didHideMenuListPopup(LayoutMenuList*) override; 98 void didHideMenuListPopup(LayoutMenuList*) override;
99 virtual void handleLoadComplete(Document*) override; 99 void handleLoadComplete(Document*) override;
100 virtual void handleLayoutComplete(Document*) override; 100 void handleLayoutComplete(Document*) override;
101 101
102 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) override; 102 void setCanvasObjectBounds(Element*, const LayoutRect&) override;
103 103
104 virtual void inlineTextBoxesUpdated(LayoutObject*) override; 104 void inlineTextBoxesUpdated(LayoutObject*) override;
105 105
106 // Called when the scroll offset changes. 106 // Called when the scroll offset changes.
107 virtual void handleScrollPositionChanged(FrameView*) override; 107 void handleScrollPositionChanged(FrameView*) override;
108 virtual void handleScrollPositionChanged(LayoutObject*) override; 108 void handleScrollPositionChanged(LayoutObject*) override;
109 109
110 // Called when scroll bars are added / removed (as the view resizes). 110 // Called when scroll bars are added / removed (as the view resizes).
111 void handleScrollbarUpdate(FrameView*) override; 111 void handleScrollbarUpdate(FrameView*) override;
112 void handleLayoutComplete(LayoutObject*) override; 112 void handleLayoutComplete(LayoutObject*) override;
113 void handleScrolledToAnchor(const Node* anchorNode) override; 113 void handleScrolledToAnchor(const Node* anchorNode) override;
114 114
115 virtual const AtomicString& computedRoleForNode(Node*) override; 115 const AtomicString& computedRoleForNode(Node*) override;
116 virtual String computedNameForNode(Node*) override; 116 String computedNameForNode(Node*) override;
117 117
118 // Returns the root object for the entire document. 118 // Returns the root object for the entire document.
119 AXObject* rootObject(); 119 AXObject* rootObject();
120 120
121 AXObject* objectFromAXID(AXID id) const { return m_objects.get(id); } 121 AXObject* objectFromAXID(AXID id) const { return m_objects.get(id); }
122 AXObject* root(); 122 AXObject* root();
123 123
124 // used for objects without backing elements 124 // used for objects without backing elements
125 AXObject* getOrCreate(AccessibilityRole); 125 AXObject* getOrCreate(AccessibilityRole);
126 AXObject* getOrCreate(LayoutObject*); 126 AXObject* getOrCreate(LayoutObject*);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // This is the only subclass of AXObjectCache. 266 // This is the only subclass of AXObjectCache.
267 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 267 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
268 268
269 bool nodeHasRole(Node*, const String& role); 269 bool nodeHasRole(Node*, const String& role);
270 // This will let you know if aria-hidden was explicitly set to false. 270 // This will let you know if aria-hidden was explicitly set to false.
271 bool isNodeAriaVisible(Node*); 271 bool isNodeAriaVisible(Node*);
272 272
273 } 273 }
274 274
275 #endif 275 #endif
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.h ('k') | Source/modules/accessibility/AXObjectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698