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 14 matching lines...) Expand all Loading... | |
| 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 class AbstractInlineTextBox; | |
|
tkent
2015/06/25 00:20:47
nit: add a blank line before this line.
keishi
2015/06/25 03:29:27
Done.
| |
| 35 class AXObject; | 36 class AXObject; |
| 36 class FrameView; | 37 class FrameView; |
| 37 class HTMLOptionElement; | 38 class HTMLOptionElement; |
| 38 class HTMLSelectElement; | 39 class HTMLSelectElement; |
| 39 class LayoutMenuList; | 40 class LayoutMenuList; |
| 40 class Page; | 41 class Page; |
| 41 class Widget; | 42 class Widget; |
| 42 | 43 |
| 43 class CORE_EXPORT AXObjectCache : public NoBaseWillBeGarbageCollectedFinalized<A XObjectCache> { | 44 class CORE_EXPORT AXObjectCache : public NoBaseWillBeGarbageCollectedFinalized<A XObjectCache> { |
| 44 WTF_MAKE_NONCOPYABLE(AXObjectCache); | 45 WTF_MAKE_NONCOPYABLE(AXObjectCache); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 virtual void childrenChanged(Node*) = 0; | 90 virtual void childrenChanged(Node*) = 0; |
| 90 virtual void childrenChanged(LayoutObject*) = 0; | 91 virtual void childrenChanged(LayoutObject*) = 0; |
| 91 virtual void checkedStateChanged(Node*) = 0; | 92 virtual void checkedStateChanged(Node*) = 0; |
| 92 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; | 93 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; |
| 93 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; | 94 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; |
| 94 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; | 95 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; |
| 95 | 96 |
| 96 virtual void remove(LayoutObject*) = 0; | 97 virtual void remove(LayoutObject*) = 0; |
| 97 virtual void remove(Node*) = 0; | 98 virtual void remove(Node*) = 0; |
| 98 virtual void remove(Widget*) = 0; | 99 virtual void remove(Widget*) = 0; |
| 100 virtual void remove(AbstractInlineTextBox*) = 0; | |
| 99 | 101 |
| 100 virtual const Element* rootAXEditableElement(const Node*) = 0; | 102 virtual const Element* rootAXEditableElement(const Node*) = 0; |
| 101 | 103 |
| 102 // 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. |
| 103 virtual void textChanged(LayoutObject*) = 0; | 105 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. | 106 // 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; | 107 virtual void updateCacheAfterNodeIsAttached(Node*) = 0; |
| 106 | 108 |
| 107 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) = 0; | 109 virtual void handleAttributeChanged(const QualifiedName& attrName, Element*) = 0; |
| 108 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo cusedNode) = 0; | 110 virtual void handleFocusedUIElementChanged(Node* oldFocusedNode, Node* newFo cusedNode) = 0; |
| 109 virtual void handleInitialFocus() = 0; | 111 virtual void handleInitialFocus() = 0; |
| 110 virtual void handleEditableTextContentChanged(Node*) = 0; | 112 virtual void handleEditableTextContentChanged(Node*) = 0; |
| 111 virtual void handleTextFormControlChanged(Node*) = 0; | 113 virtual void handleTextFormControlChanged(Node*) = 0; |
| 112 virtual void handleValueChanged(Node*) = 0; | 114 virtual void handleValueChanged(Node*) = 0; |
| 113 virtual void handleUpdateActiveMenuOption(LayoutMenuList*, int optionIndex) = 0; | 115 virtual void handleUpdateActiveMenuOption(LayoutMenuList*, int optionIndex) = 0; |
| 114 virtual void didShowMenuListPopup(LayoutMenuList*) = 0; | 116 virtual void didShowMenuListPopup(LayoutMenuList*) = 0; |
| 115 virtual void didHideMenuListPopup(LayoutMenuList*) = 0; | 117 virtual void didHideMenuListPopup(LayoutMenuList*) = 0; |
| 116 virtual void handleLoadComplete(Document*) = 0; | 118 virtual void handleLoadComplete(Document*) = 0; |
| 117 virtual void handleLayoutComplete(Document*) = 0; | 119 virtual void handleLayoutComplete(Document*) = 0; |
| 118 | 120 |
| 119 | 121 |
| 120 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; | 122 virtual void setCanvasObjectBounds(Element*, const LayoutRect&) = 0; |
| 121 | 123 |
| 122 virtual void clearWeakMembers(Visitor*) = 0; | |
| 123 | |
| 124 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; | 124 virtual void inlineTextBoxesUpdated(LayoutObject*) = 0; |
| 125 | 125 |
| 126 // Called when the scroll offset changes. | 126 // Called when the scroll offset changes. |
| 127 virtual void handleScrollPositionChanged(FrameView*) = 0; | 127 virtual void handleScrollPositionChanged(FrameView*) = 0; |
| 128 virtual void handleScrollPositionChanged(LayoutObject*) = 0; | 128 virtual void handleScrollPositionChanged(LayoutObject*) = 0; |
| 129 | 129 |
| 130 // Called when scroll bars are added / removed (as the view resizes). | 130 // Called when scroll bars are added / removed (as the view resizes). |
| 131 virtual void handleScrollbarUpdate(FrameView*) = 0; | 131 virtual void handleScrollbarUpdate(FrameView*) = 0; |
| 132 virtual void handleLayoutComplete(LayoutObject*) = 0; | 132 virtual void handleLayoutComplete(LayoutObject*) = 0; |
| 133 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; | 133 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 156 private: | 156 private: |
| 157 explicit ScopedAXObjectCache(Document&); | 157 explicit ScopedAXObjectCache(Document&); |
| 158 | 158 |
| 159 RefPtrWillBePersistent<Document> m_document; | 159 RefPtrWillBePersistent<Document> m_document; |
| 160 OwnPtrWillBePersistent<AXObjectCache> m_cache; | 160 OwnPtrWillBePersistent<AXObjectCache> m_cache; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } | 163 } |
| 164 | 164 |
| 165 #endif | 165 #endif |
| OLD | NEW |