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 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #ifndef AXTableHeaderContainer_h | 29 #ifndef AXTableHeaderContainer_h |
30 #define AXTableHeaderContainer_h | 30 #define AXTableHeaderContainer_h |
31 | 31 |
32 #include "modules/accessibility/AXMockObject.h" | 32 #include "modules/accessibility/AXMockObject.h" |
33 #include "modules/accessibility/AXTable.h" | 33 #include "modules/accessibility/AXTable.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
| 37 class AXObjectCache; |
| 38 |
37 class AXTableHeaderContainer final : public AXMockObject { | 39 class AXTableHeaderContainer final : public AXMockObject { |
38 | 40 |
39 private: | 41 private: |
40 AXTableHeaderContainer(); | 42 AXTableHeaderContainer(AXObjectCache*); |
41 public: | 43 public: |
42 static PassRefPtr<AXTableHeaderContainer> create(); | 44 static PassRefPtr<AXTableHeaderContainer> create(AXObjectCache*); |
43 virtual ~AXTableHeaderContainer(); | 45 virtual ~AXTableHeaderContainer(); |
44 | 46 |
45 virtual AccessibilityRole roleValue() const override { return TableHeaderCon
tainerRole; } | 47 virtual AccessibilityRole roleValue() const override { return TableHeaderCon
tainerRole; } |
46 | 48 |
47 virtual void addChildren() override; | 49 virtual void addChildren() override; |
48 | 50 |
49 virtual LayoutRect elementRect() const override; | 51 virtual LayoutRect elementRect() const override; |
50 | 52 |
51 private: | 53 private: |
52 LayoutRect m_headerRect; | 54 LayoutRect m_headerRect; |
53 | 55 |
54 virtual bool computeAccessibilityIsIgnored() const override; | 56 virtual bool computeAccessibilityIsIgnored() const override; |
55 }; | 57 }; |
56 | 58 |
57 } // namespace blink | 59 } // namespace blink |
58 | 60 |
59 #endif // AXTableHeaderContainer_h | 61 #endif // AXTableHeaderContainer_h |
OLD | NEW |