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

Side by Side Diff: Source/core/dom/AXObjectCache.h

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/dom/Element.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef AXObjectCache_h 26 #ifndef AXObjectCache_h
27 #define AXObjectCache_h 27 #define AXObjectCache_h
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 31
32 typedef unsigned AXID; 32 typedef unsigned AXID;
33 33
34 namespace blink { 34 namespace blink {
35
36 class AbstractInlineTextBox;
35 class AXObject; 37 class AXObject;
36 class FrameView; 38 class FrameView;
37 class HTMLOptionElement; 39 class HTMLOptionElement;
38 class HTMLSelectElement; 40 class HTMLSelectElement;
39 class LayoutMenuList; 41 class LayoutMenuList;
40 class Page; 42 class Page;
41 class Widget; 43 class Widget;
42 44
43 class CORE_EXPORT AXObjectCache : public NoBaseWillBeGarbageCollectedFinalized<A XObjectCache> { 45 class CORE_EXPORT AXObjectCache : public NoBaseWillBeGarbageCollectedFinalized<A XObjectCache> {
44 WTF_MAKE_NONCOPYABLE(AXObjectCache); 46 WTF_MAKE_NONCOPYABLE(AXObjectCache);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void childrenChanged(Node*) = 0; 91 virtual void childrenChanged(Node*) = 0;
90 virtual void childrenChanged(LayoutObject*) = 0; 92 virtual void childrenChanged(LayoutObject*) = 0;
91 virtual void checkedStateChanged(Node*) = 0; 93 virtual void checkedStateChanged(Node*) = 0;
92 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; 94 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0;
93 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; 95 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0;
94 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; 96 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0;
95 97
96 virtual void remove(LayoutObject*) = 0; 98 virtual void remove(LayoutObject*) = 0;
97 virtual void remove(Node*) = 0; 99 virtual void remove(Node*) = 0;
98 virtual void remove(Widget*) = 0; 100 virtual void remove(Widget*) = 0;
101 virtual void remove(AbstractInlineTextBox*) = 0;
99 102
100 virtual const Element* rootAXEditableElement(const Node*) = 0; 103 virtual const Element* rootAXEditableElement(const Node*) = 0;
101 104
102 // Called by a node when text or a text equivalent (e.g. alt) attribute is c hanged. 105 // Called by a node when text or a text equivalent (e.g. alt) attribute is c hanged.
103 virtual void textChanged(LayoutObject*) = 0; 106 virtual void textChanged(LayoutObject*) = 0;
104 // Called when a node has just been attached, so we can make sure we have th e right subclass of AXObject. 107 // Called when a node has just been attached, so we can make sure we have th e right subclass of AXObject.
105 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; 108 virtual void updateCacheAfterNodeIsAttached(Node*) = 0;
106 109
107 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) = 0; 110 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) = 0;
108 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo cusedNode) = 0; 111 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo cusedNode) = 0;
109 virtual void handleInitialFocus() = 0; 112 virtual void handleInitialFocus() = 0;
110 virtual void handleEditableTextContentChanged(Node*) = 0; 113 virtual void handleEditableTextContentChanged(Node*) = 0;
111 virtual void handleTextFormControlChanged(Node*) = 0; 114 virtual void handleTextFormControlChanged(Node*) = 0;
112 virtual void handleValueChanged(Node*) = 0; 115 virtual void handleValueChanged(Node*) = 0;
113 virtual void handleUpdateActiveMenuOption(LayoutMenuList*, int optionIndex) = 0; 116 virtual void handleUpdateActiveMenuOption(LayoutMenuList*, int optionIndex) = 0;
114 virtual void didShowMenuListPopup(LayoutMenuList*) = 0; 117 virtual void didShowMenuListPopup(LayoutMenuList*) = 0;
115 virtual void didHideMenuListPopup(LayoutMenuList*) = 0; 118 virtual void didHideMenuListPopup(LayoutMenuList*) = 0;
116 virtual void handleLoadComplete(Document*) = 0; 119 virtual void handleLoadComplete(Document*) = 0;
117 virtual void handleLayoutComplete(Document*) = 0; 120 virtual void handleLayoutComplete(Document*) = 0;
118 121
119 122
120 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; 123 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0;
121 124
122 virtual void clearWeakMembers(Visitor*) = 0;
123
124 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; 125 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0;
125 126
126 // Called when the scroll offset changes. 127 // Called when the scroll offset changes.
127 virtual void handleScrollPositionChanged(FrameView*) = 0; 128 virtual void handleScrollPositionChanged(FrameView*) = 0;
128 virtual void handleScrollPositionChanged(LayoutObject*) = 0; 129 virtual void handleScrollPositionChanged(LayoutObject*) = 0;
129 130
130 // Called when scroll bars are added / removed (as the view resizes). 131 // Called when scroll bars are added / removed (as the view resizes).
131 virtual void handleScrollbarUpdate(FrameView*) = 0; 132 virtual void handleScrollbarUpdate(FrameView*) = 0;
132 virtual void handleLayoutComplete(LayoutObject*) = 0; 133 virtual void handleLayoutComplete(LayoutObject*) = 0;
133 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; 134 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0;
(...skipping 22 matching lines...) Expand all
156 private: 157 private:
157 explicit ScopedAXObjectCache(Document&); 158 explicit ScopedAXObjectCache(Document&);
158 159
159 RefPtrWillBePersistent<Document> m_document; 160 RefPtrWillBePersistent<Document> m_document;
160 OwnPtrWillBePersistent<AXObjectCache> m_cache; 161 OwnPtrWillBePersistent<AXObjectCache> m_cache;
161 }; 162 };
162 163
163 } 164 }
164 165
165 #endif 166 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698