OLD | NEW |
---|---|
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 | 113 |
114 // Called when the scroll offset changes. | 114 // Called when the scroll offset changes. |
115 virtual void handleScrollPositionChanged(FrameView*) = 0; | 115 virtual void handleScrollPositionChanged(FrameView*) = 0; |
116 virtual void handleScrollPositionChanged(RenderObject*) = 0; | 116 virtual void handleScrollPositionChanged(RenderObject*) = 0; |
117 | 117 |
118 // Called when scroll bars are added / removed (as the view resizes). | 118 // Called when scroll bars are added / removed (as the view resizes). |
119 virtual void handleScrollbarUpdate(FrameView*) = 0; | 119 virtual void handleScrollbarUpdate(FrameView*) = 0; |
120 virtual void handleLayoutComplete(RenderObject*) = 0; | 120 virtual void handleLayoutComplete(RenderObject*) = 0; |
121 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; | 121 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; |
122 | 122 |
123 virtual const AtomicString& computedRoleForNode(Node*) = 0; | |
124 virtual String computedNameForNode(Node*) = 0; | |
125 | |
123 protected: | 126 protected: |
124 AXObjectCache(); | 127 AXObjectCache(); |
125 }; | 128 }; |
126 | 129 |
130 class ScopedAXObjectCache { | |
adamk
2014/12/16 23:56:49
Please add WTF_MAKE_NONCOPYABLE()
aboxhall
2014/12/17 02:06:24
Done.
| |
131 public: | |
132 explicit ScopedAXObjectCache(Document&); | |
133 ~ScopedAXObjectCache(); | |
134 | |
135 AXObjectCache* get(); | |
136 AXObjectCache* operator->(); | |
137 | |
138 private: | |
139 | |
adamk
2014/12/16 23:56:49
No need for this empty line.
aboxhall
2014/12/17 02:06:24
It's for dramatic effect.
(Just kidding.)
| |
140 Document& m_document; | |
141 AXObjectCache* m_cache; | |
142 bool m_isScoped; | |
143 }; | |
144 | |
127 } | 145 } |
128 | 146 |
129 #endif | 147 #endif |
OLD | NEW |