| 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 23 matching lines...) Expand all Loading... |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class AXTableCell : public AXRenderObject { | 36 class AXTableCell : public AXRenderObject { |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 explicit AXTableCell(RenderObject*); | 39 explicit AXTableCell(RenderObject*); |
| 40 public: | 40 public: |
| 41 static PassRefPtr<AXTableCell> create(RenderObject*); | 41 static PassRefPtr<AXTableCell> create(RenderObject*); |
| 42 virtual ~AXTableCell(); | 42 virtual ~AXTableCell(); |
| 43 | 43 |
| 44 virtual bool isTableCell() const OVERRIDE FINAL; | 44 virtual bool isTableCell() const override final; |
| 45 | 45 |
| 46 // fills in the start location and row span of cell | 46 // fills in the start location and row span of cell |
| 47 virtual void rowIndexRange(pair<unsigned, unsigned>& rowRange); | 47 virtual void rowIndexRange(pair<unsigned, unsigned>& rowRange); |
| 48 // fills in the start location and column span of cell | 48 // fills in the start location and column span of cell |
| 49 virtual void columnIndexRange(pair<unsigned, unsigned>& columnRange); | 49 virtual void columnIndexRange(pair<unsigned, unsigned>& columnRange); |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual AXObject* parentTable() const; | 52 virtual AXObject* parentTable() const; |
| 53 int m_rowIndex; | 53 int m_rowIndex; |
| 54 virtual AccessibilityRole determineAccessibilityRole() OVERRIDE FINAL; | 54 virtual AccessibilityRole determineAccessibilityRole() override final; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // If a table cell is not exposed as a table cell, a TH element can serve as
its title UI element. | 57 // If a table cell is not exposed as a table cell, a TH element can serve as
its title UI element. |
| 58 virtual AXObject* titleUIElement() const OVERRIDE FINAL; | 58 virtual AXObject* titleUIElement() const override final; |
| 59 virtual bool exposesTitleUIElement() const OVERRIDE FINAL { return true; } | 59 virtual bool exposesTitleUIElement() const override final { return true; } |
| 60 virtual bool computeAccessibilityIsIgnored() const OVERRIDE FINAL; | 60 virtual bool computeAccessibilityIsIgnored() const override final; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, isTableCell()); | 63 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, isTableCell()); |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| 66 | 66 |
| 67 #endif // AXTableCell_h | 67 #endif // AXTableCell_h |
| OLD | NEW |