| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 18 matching lines...) Expand all Loading... |
| 29 #ifndef AXARIAGridCell_h | 29 #ifndef AXARIAGridCell_h |
| 30 #define AXARIAGridCell_h | 30 #define AXARIAGridCell_h |
| 31 | 31 |
| 32 #include "modules/accessibility/AXTableCell.h" | 32 #include "modules/accessibility/AXTableCell.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class AXObjectCacheImpl; | 36 class AXObjectCacheImpl; |
| 37 | 37 |
| 38 class AXARIAGridCell final : public AXTableCell { | 38 class AXARIAGridCell final : public AXTableCell { |
| 39 WTF_MAKE_NONCOPYABLE(AXARIAGridCell); |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 AXARIAGridCell(LayoutObject*, AXObjectCacheImpl&); | 42 AXARIAGridCell(LayoutObject*, AXObjectCacheImpl&); |
| 42 | 43 |
| 43 public: | 44 public: |
| 44 static AXARIAGridCell* create(LayoutObject*, AXObjectCacheImpl&); | 45 static AXARIAGridCell* create(LayoutObject*, AXObjectCacheImpl&); |
| 45 ~AXARIAGridCell() override; | 46 ~AXARIAGridCell() override; |
| 46 | 47 |
| 47 // fills in the start location and row span of cell | 48 // fills in the start location and row span of cell |
| 48 void rowIndexRange(std::pair<unsigned, unsigned>& rowRange) override; | 49 void rowIndexRange(std::pair<unsigned, unsigned>& rowRange) override; |
| 49 // fills in the start location and column span of cell | 50 // fills in the start location and column span of cell |
| 50 void columnIndexRange(std::pair<unsigned, unsigned>& columnRange) override; | 51 void columnIndexRange(std::pair<unsigned, unsigned>& columnRange) override; |
| 51 AccessibilityRole scanToDecideHeaderRole() final; | 52 AccessibilityRole scanToDecideHeaderRole() final; |
| 52 | 53 |
| 53 protected: | 54 protected: |
| 54 bool isAriaColumnHeader() const; | 55 bool isAriaColumnHeader() const; |
| 55 bool isAriaRowHeader() const; | 56 bool isAriaRowHeader() const; |
| 56 AXObject* parentTable() const override; | 57 AXObject* parentTable() const override; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace blink | 60 } // namespace blink |
| 60 | 61 |
| 61 #endif // AXARIAGridCell_h | 62 #endif // AXARIAGridCell_h |
| OLD | NEW |