Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class AbstractInlineTextBox; | 36 class AbstractInlineTextBox; |
| 37 class AXObject; | 37 class AXObject; |
| 38 class FrameView; | 38 class FrameView; |
| 39 class HTMLOptionElement; | 39 class HTMLOptionElement; |
| 40 class HTMLSelectElement; | 40 class HTMLSelectElement; |
| 41 class LayoutMenuList; | 41 class LayoutMenuList; |
| 42 class Page; | 42 class Page; |
| 43 class Widget; | |
| 44 | 43 |
| 45 class CORE_EXPORT AXObjectCache : public GarbageCollectedFinalized<AXObjectCache > { | 44 class CORE_EXPORT AXObjectCache : public GarbageCollectedFinalized<AXObjectCache > { |
| 46 WTF_MAKE_NONCOPYABLE(AXObjectCache); | 45 WTF_MAKE_NONCOPYABLE(AXObjectCache); |
| 47 public: | 46 public: |
| 48 static AXObjectCache* create(Document&); | 47 static AXObjectCache* create(Document&); |
| 49 | 48 |
| 50 static AXObject* focusedUIElementForPage(const Page*); | 49 static AXObject* focusedUIElementForPage(const Page*); |
| 51 | 50 |
| 52 virtual ~AXObjectCache(); | 51 virtual ~AXObjectCache(); |
| 53 DEFINE_INLINE_VIRTUAL_TRACE() { } | 52 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 virtual void selectionChanged(Node*) = 0; | 90 virtual void selectionChanged(Node*) = 0; |
| 92 virtual void childrenChanged(Node*) = 0; | 91 virtual void childrenChanged(Node*) = 0; |
| 93 virtual void childrenChanged(LayoutObject*) = 0; | 92 virtual void childrenChanged(LayoutObject*) = 0; |
| 94 virtual void checkedStateChanged(Node*) = 0; | 93 virtual void checkedStateChanged(Node*) = 0; |
| 95 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; | 94 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; |
| 96 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; | 95 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; |
| 97 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; | 96 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; |
| 98 | 97 |
| 99 virtual void remove(LayoutObject*) = 0; | 98 virtual void remove(LayoutObject*) = 0; |
| 100 virtual void remove(Node*) = 0; | 99 virtual void remove(Node*) = 0; |
| 101 virtual void remove(Widget*) = 0; | |
| 102 virtual void remove(AbstractInlineTextBox*) = 0; | 100 virtual void remove(AbstractInlineTextBox*) = 0; |
| 103 | 101 |
| 104 virtual const Element* rootAXEditableElement(const Node*) = 0; | 102 virtual const Element* rootAXEditableElement(const Node*) = 0; |
| 105 | 103 |
| 106 // Called by a node when text or a text equivalent (e.g. alt) attribute is c hanged. | 104 // Called by a node when text or a text equivalent (e.g. alt) attribute is c hanged. |
| 107 virtual void textChanged(LayoutObject*) = 0; | 105 virtual void textChanged(LayoutObject*) = 0; |
| 108 // Called when a node has just been attached, so we can make sure we have th e right subclass of AXObject. | 106 // Called when a node has just been attached, so we can make sure we have th e right subclass of AXObject. |
| 109 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; | 107 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; |
| 110 | 108 |
| 111 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) = 0; | 109 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) = 0; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 122 | 120 |
| 123 | 121 |
| 124 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; | 122 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; |
| 125 | 123 |
| 126 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; | 124 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; |
| 127 | 125 |
| 128 // Called when the scroll offset changes. | 126 // Called when the scroll offset changes. |
| 129 virtual void handleScrollPositionChanged(FrameView*) = 0; | 127 virtual void handleScrollPositionChanged(FrameView*) = 0; |
| 130 virtual void handleScrollPositionChanged(LayoutObject*) = 0; | 128 virtual void handleScrollPositionChanged(LayoutObject*) = 0; |
| 131 | 129 |
| 132 // Called when scroll bars are added / removed (as the view resizes). | 130 // Called when scroll bars are added / removed (as the view resizes). |
|
je_julie
2016/01/07 06:56:03
nit, this comment seems to be added for handleScro
| |
| 133 virtual void handleScrollbarUpdate(FrameView*) = 0; | |
| 134 virtual void handleLayoutComplete(LayoutObject*) = 0; | 131 virtual void handleLayoutComplete(LayoutObject*) = 0; |
| 135 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; | 132 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; |
| 136 | 133 |
| 137 virtual const AtomicString& computedRoleForNode(Node*) = 0; | 134 virtual const AtomicString& computedRoleForNode(Node*) = 0; |
| 138 virtual String computedNameForNode(Node*) = 0; | 135 virtual String computedNameForNode(Node*) = 0; |
| 139 | 136 |
| 140 virtual void onTouchAccessibilityHover(const IntPoint&) = 0; | 137 virtual void onTouchAccessibilityHover(const IntPoint&) = 0; |
| 141 | 138 |
| 142 typedef AXObjectCache* (*AXObjectCacheCreateFunction)(Document&); | 139 typedef AXObjectCache* (*AXObjectCacheCreateFunction)(Document&); |
| 143 static void init(AXObjectCacheCreateFunction); | 140 static void init(AXObjectCacheCreateFunction); |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 161 private: | 158 private: |
| 162 explicit ScopedAXObjectCache(Document&); | 159 explicit ScopedAXObjectCache(Document&); |
| 163 | 160 |
| 164 RefPtrWillBePersistent<Document> m_document; | 161 RefPtrWillBePersistent<Document> m_document; |
| 165 Persistent<AXObjectCache> m_cache; | 162 Persistent<AXObjectCache> m_cache; |
| 166 }; | 163 }; |
| 167 | 164 |
| 168 } | 165 } |
| 169 | 166 |
| 170 #endif | 167 #endif |
| OLD | NEW |