| 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 16 matching lines...) Expand all Loading... |
| 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 AXObject; | 35 class AXObject; |
| 36 class FrameView; | 36 class FrameView; |
| 37 class HTMLOptionElement; |
| 38 class HTMLSelectElement; |
| 37 class LayoutMenuList; | 39 class LayoutMenuList; |
| 38 class Page; | 40 class Page; |
| 39 class Widget; | 41 class Widget; |
| 40 | 42 |
| 41 class CORE_EXPORT AXObjectCache { | 43 class CORE_EXPORT AXObjectCache { |
| 42 WTF_MAKE_NONCOPYABLE(AXObjectCache); WTF_MAKE_FAST_ALLOCATED(AXObjectCache); | 44 WTF_MAKE_NONCOPYABLE(AXObjectCache); WTF_MAKE_FAST_ALLOCATED(AXObjectCache); |
| 43 public: | 45 public: |
| 44 static AXObjectCache* create(Document&); | 46 static AXObjectCache* create(Document&); |
| 45 | 47 |
| 46 static AXObject* focusedUIElementForPage(const Page*); | 48 static AXObject* focusedUIElementForPage(const Page*); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 76 AXTextChanged, | 78 AXTextChanged, |
| 77 AXTextInserted, | 79 AXTextInserted, |
| 78 AXTextRemoved, | 80 AXTextRemoved, |
| 79 AXValueChanged | 81 AXValueChanged |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 virtual void selectionChanged(Node*) = 0; | 84 virtual void selectionChanged(Node*) = 0; |
| 83 virtual void childrenChanged(Node*) = 0; | 85 virtual void childrenChanged(Node*) = 0; |
| 84 virtual void childrenChanged(LayoutObject*) = 0; | 86 virtual void childrenChanged(LayoutObject*) = 0; |
| 85 virtual void checkedStateChanged(Node*) = 0; | 87 virtual void checkedStateChanged(Node*) = 0; |
| 86 virtual void selectedChildrenChanged(Node*) = 0; | 88 virtual void listboxOptionStateChanged(HTMLOptionElement*) = 0; |
| 89 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*) = 0; |
| 90 virtual void listboxActiveIndexChanged(HTMLSelectElement*) = 0; |
| 87 | 91 |
| 88 virtual void remove(LayoutObject*) = 0; | 92 virtual void remove(LayoutObject*) = 0; |
| 89 virtual void remove(Node*) = 0; | 93 virtual void remove(Node*) = 0; |
| 90 virtual void remove(Widget*) = 0; | 94 virtual void remove(Widget*) = 0; |
| 91 | 95 |
| 92 virtual const Element* rootAXEditableElement(const Node*) = 0; | 96 virtual const Element* rootAXEditableElement(const Node*) = 0; |
| 93 | 97 |
| 94 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. | 98 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. |
| 95 virtual void textChanged(LayoutObject*) = 0; | 99 virtual void textChanged(LayoutObject*) = 0; |
| 96 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. | 100 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 152 |
| 149 private: | 153 private: |
| 150 Document& m_document; | 154 Document& m_document; |
| 151 AXObjectCache* m_cache; | 155 AXObjectCache* m_cache; |
| 152 bool m_isScoped; | 156 bool m_isScoped; |
| 153 }; | 157 }; |
| 154 | 158 |
| 155 } | 159 } |
| 156 | 160 |
| 157 #endif | 161 #endif |
| OLD | NEW |