OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 13 matching lines...) Expand all Loading... |
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef AccessibilityTableHeaderContainer_h | 29 #ifndef AccessibilityTableHeaderContainer_h |
30 #define AccessibilityTableHeaderContainer_h | 30 #define AccessibilityTableHeaderContainer_h |
31 | 31 |
32 #include "core/accessibility/AccessibilityMockObject.h" | 32 #include "core/accessibility/AccessibilityMockObject.h" |
33 #include "core/accessibility/AccessibilityTable.h" | 33 #include "core/accessibility/AccessibilityTable.h" |
34 #include "core/platform/graphics/IntRect.h" | |
35 | 34 |
36 namespace WebCore { | 35 namespace WebCore { |
37 | 36 |
38 class AccessibilityTableHeaderContainer : public AccessibilityMockObject { | 37 class AccessibilityTableHeaderContainer : public AccessibilityMockObject { |
39 | 38 |
40 private: | 39 private: |
41 AccessibilityTableHeaderContainer(); | 40 AccessibilityTableHeaderContainer(); |
42 public: | 41 public: |
43 static PassRefPtr<AccessibilityTableHeaderContainer> create(); | 42 static PassRefPtr<AccessibilityTableHeaderContainer> create(); |
44 virtual ~AccessibilityTableHeaderContainer(); | 43 virtual ~AccessibilityTableHeaderContainer(); |
45 | 44 |
46 virtual AccessibilityRole roleValue() const OVERRIDE { return TableHeaderCon
tainerRole; } | 45 virtual AccessibilityRole roleValue() const OVERRIDE { return TableHeaderCon
tainerRole; } |
47 | 46 |
48 virtual void addChildren() OVERRIDE; | 47 virtual void addChildren() OVERRIDE; |
49 | 48 |
50 virtual LayoutRect elementRect() const OVERRIDE; | 49 virtual LayoutRect elementRect() const OVERRIDE; |
51 | 50 |
52 private: | 51 private: |
53 LayoutRect m_headerRect; | 52 LayoutRect m_headerRect; |
54 | 53 |
55 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; | 54 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; |
56 }; | 55 }; |
57 | 56 |
58 } // namespace WebCore | 57 } // namespace WebCore |
59 | 58 |
60 #endif // AccessibilityTableHeaderContainer_h | 59 #endif // AccessibilityTableHeaderContainer_h |
OLD | NEW |