| 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 { |
| 131 WTF_MAKE_NONCOPYABLE(ScopedAXObjectCache); |
| 132 public: |
| 133 explicit ScopedAXObjectCache(Document&); |
| 134 ~ScopedAXObjectCache(); |
| 135 |
| 136 AXObjectCache* get(); |
| 137 AXObjectCache* operator->(); |
| 138 |
| 139 private: |
| 140 Document& m_document; |
| 141 AXObjectCache* m_cache; |
| 142 bool m_isScoped; |
| 143 }; |
| 144 |
| 127 } | 145 } |
| 128 | 146 |
| 129 #endif | 147 #endif |
| OLD | NEW |