Commit 601e4a05 authored by Stuart Langley's avatar Stuart Langley Committed by Commit Bot

Replace WTF_MAKE_NONCOPYABLE with DISALLOW_COPY_AND_ASSIGN in Source/modules/accessibility.

This changes is for files in the path //t_p/WebKit/Source/modules/accessibility.

Added the include for base/macros.h where needed and moved the macro to the
end of the class as per the code guidelines enforced by lint.

Also take the chance to change ctor/dtor to use '= default' where possible.

This CL introduces no logic changes.

Bug: 565932
Change-Id: I5b03045c5e880d7a97aa9006e055ea4a065301c3
Reviewed-on: https://chromium-review.googlesource.com/822011Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Stuart Langley <slangley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523370}
parent 96041bc3
...@@ -29,16 +29,14 @@ ...@@ -29,16 +29,14 @@
#ifndef AXARIAGrid_h #ifndef AXARIAGrid_h
#define AXARIAGrid_h #define AXARIAGrid_h
#include "base/macros.h"
#include "modules/accessibility/AXTable.h" #include "modules/accessibility/AXTable.h"
#include "platform/wtf/Forward.h"
namespace blink { namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXARIAGrid final : public AXTable { class AXARIAGrid final : public AXTable {
WTF_MAKE_NONCOPYABLE(AXARIAGrid);
private: private:
AXARIAGrid(LayoutObject*, AXObjectCacheImpl&); AXARIAGrid(LayoutObject*, AXObjectCacheImpl&);
...@@ -64,6 +62,8 @@ class AXARIAGrid final : public AXTable { ...@@ -64,6 +62,8 @@ class AXARIAGrid final : public AXTable {
unsigned CalculateNumColumns(); unsigned CalculateNumColumns();
void AddColumnChildren(unsigned num_cols); void AddColumnChildren(unsigned num_cols);
void AddHeaderContainerChild(); void AddHeaderContainerChild();
DISALLOW_COPY_AND_ASSIGN(AXARIAGrid);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXARIAGridCell_h #ifndef AXARIAGridCell_h
#define AXARIAGridCell_h #define AXARIAGridCell_h
#include "base/macros.h"
#include "modules/accessibility/AXTableCell.h" #include "modules/accessibility/AXTableCell.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXARIAGridCell final : public AXTableCell { class AXARIAGridCell final : public AXTableCell {
WTF_MAKE_NONCOPYABLE(AXARIAGridCell);
private: private:
AXARIAGridCell(LayoutObject*, AXObjectCacheImpl&); AXARIAGridCell(LayoutObject*, AXObjectCacheImpl&);
...@@ -61,6 +60,8 @@ class AXARIAGridCell final : public AXTableCell { ...@@ -61,6 +60,8 @@ class AXARIAGridCell final : public AXTableCell {
bool IsAriaRowHeader() const; bool IsAriaRowHeader() const;
AXObject* ParentTable() const override; AXObject* ParentTable() const override;
AXObject* ParentRow() const override; AXObject* ParentRow() const override;
DISALLOW_COPY_AND_ASSIGN(AXARIAGridCell);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXARIAGridRow_h #ifndef AXARIAGridRow_h
#define AXARIAGridRow_h #define AXARIAGridRow_h
#include "base/macros.h"
#include "modules/accessibility/AXTableRow.h" #include "modules/accessibility/AXTableRow.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXARIAGridRow final : public AXTableRow { class AXARIAGridRow final : public AXTableRow {
WTF_MAKE_NONCOPYABLE(AXARIAGridRow);
private: private:
AXARIAGridRow(LayoutObject*, AXObjectCacheImpl&); AXARIAGridRow(LayoutObject*, AXObjectCacheImpl&);
virtual void Trace(blink::Visitor*); virtual void Trace(blink::Visitor*);
...@@ -68,6 +67,8 @@ class AXARIAGridRow final : public AXTableRow { ...@@ -68,6 +67,8 @@ class AXARIAGridRow final : public AXTableRow {
bool IsARIARow() const final; bool IsARIARow() const final;
void ComputeCells(AXObjectVector from_child_list); void ComputeCells(AXObjectVector from_child_list);
bool AddCell(AXObject*); bool AddCell(AXObject*);
DISALLOW_COPY_AND_ASSIGN(AXARIAGridRow);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXARIAGridRow, IsARIARow()); DEFINE_AX_OBJECT_TYPE_CASTS(AXARIAGridRow, IsARIARow());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXImageMapLink_h #ifndef AXImageMapLink_h
#define AXImageMapLink_h #define AXImageMapLink_h
#include "base/macros.h"
#include "core/html/HTMLAreaElement.h" #include "core/html/HTMLAreaElement.h"
#include "core/html/HTMLMapElement.h" #include "core/html/HTMLMapElement.h"
#include "modules/accessibility/AXNodeObject.h" #include "modules/accessibility/AXNodeObject.h"
...@@ -38,8 +39,6 @@ namespace blink { ...@@ -38,8 +39,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXImageMapLink final : public AXNodeObject { class AXImageMapLink final : public AXNodeObject {
WTF_MAKE_NONCOPYABLE(AXImageMapLink);
private: private:
explicit AXImageMapLink(HTMLAreaElement*, AXObjectCacheImpl&); explicit AXImageMapLink(HTMLAreaElement*, AXObjectCacheImpl&);
...@@ -68,6 +67,8 @@ class AXImageMapLink final : public AXNodeObject { ...@@ -68,6 +67,8 @@ class AXImageMapLink final : public AXNodeObject {
private: private:
bool IsImageMapLink() const override { return true; } bool IsImageMapLink() const override { return true; }
DISALLOW_COPY_AND_ASSIGN(AXImageMapLink);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXImageMapLink, IsImageMapLink()); DEFINE_AX_OBJECT_TYPE_CASTS(AXImageMapLink, IsImageMapLink());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXInlineTextBox_h #ifndef AXInlineTextBox_h
#define AXInlineTextBox_h #define AXInlineTextBox_h
#include "base/macros.h"
#include "core/layout/line/AbstractInlineTextBox.h" #include "core/layout/line/AbstractInlineTextBox.h"
#include "modules/accessibility/AXObject.h" #include "modules/accessibility/AXObject.h"
...@@ -38,8 +39,6 @@ class Node; ...@@ -38,8 +39,6 @@ class Node;
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXInlineTextBox final : public AXObject { class AXInlineTextBox final : public AXObject {
WTF_MAKE_NONCOPYABLE(AXInlineTextBox);
private: private:
AXInlineTextBox(scoped_refptr<AbstractInlineTextBox>, AXObjectCacheImpl&); AXInlineTextBox(scoped_refptr<AbstractInlineTextBox>, AXObjectCacheImpl&);
...@@ -73,6 +72,8 @@ class AXInlineTextBox final : public AXObject { ...@@ -73,6 +72,8 @@ class AXInlineTextBox final : public AXObject {
scoped_refptr<AbstractInlineTextBox> inline_text_box_; scoped_refptr<AbstractInlineTextBox> inline_text_box_;
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXInlineTextBox);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
#ifndef AXLayoutObject_h #ifndef AXLayoutObject_h
#define AXLayoutObject_h #define AXLayoutObject_h
#include "base/macros.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXNodeObject.h" #include "modules/accessibility/AXNodeObject.h"
#include "platform/geometry/LayoutRect.h" #include "platform/geometry/LayoutRect.h"
#include "platform/wtf/Forward.h"
namespace blink { namespace blink {
...@@ -45,8 +45,6 @@ class LocalFrameView; ...@@ -45,8 +45,6 @@ class LocalFrameView;
class Node; class Node;
class MODULES_EXPORT AXLayoutObject : public AXNodeObject { class MODULES_EXPORT AXLayoutObject : public AXNodeObject {
WTF_MAKE_NONCOPYABLE(AXLayoutObject);
protected: protected:
AXLayoutObject(LayoutObject*, AXObjectCacheImpl&); AXLayoutObject(LayoutObject*, AXObjectCacheImpl&);
...@@ -212,6 +210,8 @@ class MODULES_EXPORT AXLayoutObject : public AXNodeObject { ...@@ -212,6 +210,8 @@ class MODULES_EXPORT AXLayoutObject : public AXNodeObject {
bool CanIgnoreTextAsEmpty() const; bool CanIgnoreTextAsEmpty() const;
bool CanIgnoreSpaceNextTo(LayoutObject*, bool is_after) const; bool CanIgnoreSpaceNextTo(LayoutObject*, bool is_after) const;
bool HasAriaCellRole(Element*) const; bool HasAriaCellRole(Element*) const;
DISALLOW_COPY_AND_ASSIGN(AXLayoutObject);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, IsAXLayoutObject()); DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, IsAXLayoutObject());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXList_h #ifndef AXList_h
#define AXList_h #define AXList_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXList final : public AXLayoutObject { class AXList final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXList);
private: private:
AXList(LayoutObject*, AXObjectCacheImpl&); AXList(LayoutObject*, AXObjectCacheImpl&);
...@@ -52,6 +51,8 @@ class AXList final : public AXLayoutObject { ...@@ -52,6 +51,8 @@ class AXList final : public AXLayoutObject {
private: private:
bool IsDescriptionList() const; bool IsDescriptionList() const;
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXList);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXListBox_h #ifndef AXListBox_h
#define AXListBox_h #define AXListBox_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXListBox final : public AXLayoutObject { class AXListBox final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXListBox);
private: private:
AXListBox(LayoutObject*, AXObjectCacheImpl&); AXListBox(LayoutObject*, AXObjectCacheImpl&);
...@@ -53,6 +52,8 @@ class AXListBox final : public AXLayoutObject { ...@@ -53,6 +52,8 @@ class AXListBox final : public AXLayoutObject {
private: private:
int active_index_; int active_index_;
DISALLOW_COPY_AND_ASSIGN(AXListBox);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXListBox, IsAXListBox()); DEFINE_AX_OBJECT_TYPE_CASTS(AXListBox, IsAXListBox());
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#ifndef AXListBoxOption_h #ifndef AXListBoxOption_h
#define AXListBoxOption_h #define AXListBoxOption_h
#include "base/macros.h"
#include "core/html/HTMLElement.h" #include "core/html/HTMLElement.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
#include "platform/wtf/Forward.h"
namespace blink { namespace blink {
...@@ -39,8 +39,6 @@ class AXObjectCacheImpl; ...@@ -39,8 +39,6 @@ class AXObjectCacheImpl;
class HTMLSelectElement; class HTMLSelectElement;
class AXListBoxOption final : public AXLayoutObject { class AXListBoxOption final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXListBoxOption);
private: private:
AXListBoxOption(LayoutObject*, AXObjectCacheImpl&); AXListBoxOption(LayoutObject*, AXObjectCacheImpl&);
...@@ -67,6 +65,8 @@ class AXListBoxOption final : public AXLayoutObject { ...@@ -67,6 +65,8 @@ class AXListBoxOption final : public AXLayoutObject {
HTMLSelectElement* ListBoxOptionParentNode() const; HTMLSelectElement* ListBoxOptionParentNode() const;
bool IsParentPresentationalRole() const; bool IsParentPresentationalRole() const;
DISALLOW_COPY_AND_ASSIGN(AXListBoxOption);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXMediaControls_h #ifndef AXMediaControls_h
#define AXMediaControls_h #define AXMediaControls_h
#include "base/macros.h"
#include "modules/accessibility/AXSlider.h" #include "modules/accessibility/AXSlider.h"
#include "modules/media_controls/elements/MediaControlElementType.h" #include "modules/media_controls/elements/MediaControlElementType.h"
...@@ -37,11 +38,9 @@ namespace blink { ...@@ -37,11 +38,9 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AccessibilityMediaControl : public AXLayoutObject { class AccessibilityMediaControl : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AccessibilityMediaControl);
public: public:
static AXObject* Create(LayoutObject*, AXObjectCacheImpl&); static AXObject* Create(LayoutObject*, AXObjectCacheImpl&);
~AccessibilityMediaControl() override {} ~AccessibilityMediaControl() override = default;
AccessibilityRole RoleValue() const override; AccessibilityRole RoleValue() const override;
...@@ -59,14 +58,14 @@ class AccessibilityMediaControl : public AXLayoutObject { ...@@ -59,14 +58,14 @@ class AccessibilityMediaControl : public AXLayoutObject {
AccessibilityMediaControl(LayoutObject*, AXObjectCacheImpl&); AccessibilityMediaControl(LayoutObject*, AXObjectCacheImpl&);
MediaControlElementType ControlType() const; MediaControlElementType ControlType() const;
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AccessibilityMediaControl);
}; };
class AccessibilityMediaTimeline final : public AXSlider { class AccessibilityMediaTimeline final : public AXSlider {
WTF_MAKE_NONCOPYABLE(AccessibilityMediaTimeline);
public: public:
static AXObject* Create(LayoutObject*, AXObjectCacheImpl&); static AXObject* Create(LayoutObject*, AXObjectCacheImpl&);
~AccessibilityMediaTimeline() override {} ~AccessibilityMediaTimeline() override = default;
String Description(AXNameFrom, String Description(AXNameFrom,
AXDescriptionFrom&, AXDescriptionFrom&,
...@@ -75,14 +74,14 @@ class AccessibilityMediaTimeline final : public AXSlider { ...@@ -75,14 +74,14 @@ class AccessibilityMediaTimeline final : public AXSlider {
private: private:
AccessibilityMediaTimeline(LayoutObject*, AXObjectCacheImpl&); AccessibilityMediaTimeline(LayoutObject*, AXObjectCacheImpl&);
DISALLOW_COPY_AND_ASSIGN(AccessibilityMediaTimeline);
}; };
class AXMediaControlsContainer final : public AccessibilityMediaControl { class AXMediaControlsContainer final : public AccessibilityMediaControl {
WTF_MAKE_NONCOPYABLE(AXMediaControlsContainer);
public: public:
static AXObject* Create(LayoutObject*, AXObjectCacheImpl&); static AXObject* Create(LayoutObject*, AXObjectCacheImpl&);
~AXMediaControlsContainer() override {} ~AXMediaControlsContainer() override = default;
AccessibilityRole RoleValue() const override { return kToolbarRole; } AccessibilityRole RoleValue() const override { return kToolbarRole; }
...@@ -99,14 +98,14 @@ class AXMediaControlsContainer final : public AccessibilityMediaControl { ...@@ -99,14 +98,14 @@ class AXMediaControlsContainer final : public AccessibilityMediaControl {
private: private:
AXMediaControlsContainer(LayoutObject*, AXObjectCacheImpl&); AXMediaControlsContainer(LayoutObject*, AXObjectCacheImpl&);
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXMediaControlsContainer);
}; };
class AccessibilityMediaTimeDisplay final : public AccessibilityMediaControl { class AccessibilityMediaTimeDisplay final : public AccessibilityMediaControl {
WTF_MAKE_NONCOPYABLE(AccessibilityMediaTimeDisplay);
public: public:
static AXObject* Create(LayoutObject*, AXObjectCacheImpl&); static AXObject* Create(LayoutObject*, AXObjectCacheImpl&);
~AccessibilityMediaTimeDisplay() override {} ~AccessibilityMediaTimeDisplay() override = default;
AccessibilityRole RoleValue() const override { return kStaticTextRole; } AccessibilityRole RoleValue() const override { return kStaticTextRole; }
...@@ -121,6 +120,8 @@ class AccessibilityMediaTimeDisplay final : public AccessibilityMediaControl { ...@@ -121,6 +120,8 @@ class AccessibilityMediaTimeDisplay final : public AccessibilityMediaControl {
private: private:
AccessibilityMediaTimeDisplay(LayoutObject*, AXObjectCacheImpl&); AccessibilityMediaTimeDisplay(LayoutObject*, AXObjectCacheImpl&);
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AccessibilityMediaTimeDisplay);
}; };
} // namespace blink } // namespace blink
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef AXMenuList_h #ifndef AXMenuList_h
#define AXMenuList_h #define AXMenuList_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -34,8 +35,6 @@ class AXObjectCacheImpl; ...@@ -34,8 +35,6 @@ class AXObjectCacheImpl;
class LayoutMenuList; class LayoutMenuList;
class AXMenuList final : public AXLayoutObject { class AXMenuList final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXMenuList);
public: public:
static AXMenuList* Create(LayoutMenuList* layout_object, AXObjectCacheImpl&); static AXMenuList* Create(LayoutMenuList* layout_object, AXObjectCacheImpl&);
...@@ -57,6 +56,8 @@ class AXMenuList final : public AXLayoutObject { ...@@ -57,6 +56,8 @@ class AXMenuList final : public AXLayoutObject {
AccessibilityRole DetermineAccessibilityRole() final; AccessibilityRole DetermineAccessibilityRole() final;
void AddChildren() override; void AddChildren() override;
DISALLOW_COPY_AND_ASSIGN(AXMenuList);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, IsMenuList()); DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, IsMenuList());
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef AXMenuListOption_h #ifndef AXMenuListOption_h
#define AXMenuListOption_h #define AXMenuListOption_h
#include "base/macros.h"
#include "core/html/forms/HTMLOptionElement.h" #include "core/html/forms/HTMLOptionElement.h"
#include "modules/accessibility/AXMockObject.h" #include "modules/accessibility/AXMockObject.h"
...@@ -34,8 +35,6 @@ namespace blink { ...@@ -34,8 +35,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXMenuListOption final : public AXMockObject { class AXMenuListOption final : public AXMockObject {
WTF_MAKE_NONCOPYABLE(AXMenuListOption);
public: public:
static AXMenuListOption* Create(HTMLOptionElement* element, static AXMenuListOption* Create(HTMLOptionElement* element,
AXObjectCacheImpl& ax_object_cache) { AXObjectCacheImpl& ax_object_cache) {
...@@ -77,6 +76,8 @@ class AXMenuListOption final : public AXMockObject { ...@@ -77,6 +76,8 @@ class AXMenuListOption final : public AXMockObject {
HTMLSelectElement* ParentSelectNode() const; HTMLSelectElement* ParentSelectNode() const;
Member<HTMLOptionElement> element_; Member<HTMLOptionElement> element_;
DISALLOW_COPY_AND_ASSIGN(AXMenuListOption);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption());
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef AXMenuListPopup_h #ifndef AXMenuListPopup_h
#define AXMenuListPopup_h #define AXMenuListPopup_h
#include "base/macros.h"
#include "modules/accessibility/AXMockObject.h" #include "modules/accessibility/AXMockObject.h"
namespace blink { namespace blink {
...@@ -35,8 +36,6 @@ class AXMenuListOption; ...@@ -35,8 +36,6 @@ class AXMenuListOption;
class HTMLElement; class HTMLElement;
class AXMenuListPopup final : public AXMockObject { class AXMenuListPopup final : public AXMockObject {
WTF_MAKE_NONCOPYABLE(AXMenuListPopup);
public: public:
static AXMenuListPopup* Create(AXObjectCacheImpl& ax_object_cache) { static AXMenuListPopup* Create(AXObjectCacheImpl& ax_object_cache) {
return new AXMenuListPopup(ax_object_cache); return new AXMenuListPopup(ax_object_cache);
...@@ -68,6 +67,8 @@ class AXMenuListPopup final : public AXMockObject { ...@@ -68,6 +67,8 @@ class AXMenuListPopup final : public AXMockObject {
// Note that this may be -1 if nothing is selected. // Note that this may be -1 if nothing is selected.
int active_index_; int active_index_;
DISALLOW_COPY_AND_ASSIGN(AXMenuListPopup);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListPopup, IsMenuListPopup()); DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListPopup, IsMenuListPopup());
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef AXMockObject_h #ifndef AXMockObject_h
#define AXMockObject_h #define AXMockObject_h
#include "base/macros.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXObject.h" #include "modules/accessibility/AXObject.h"
...@@ -34,8 +35,6 @@ namespace blink { ...@@ -34,8 +35,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class MODULES_EXPORT AXMockObject : public AXObject { class MODULES_EXPORT AXMockObject : public AXObject {
WTF_MAKE_NONCOPYABLE(AXMockObject);
protected: protected:
explicit AXMockObject(AXObjectCacheImpl&); explicit AXMockObject(AXObjectCacheImpl&);
...@@ -50,6 +49,8 @@ class MODULES_EXPORT AXMockObject : public AXObject { ...@@ -50,6 +49,8 @@ class MODULES_EXPORT AXMockObject : public AXObject {
bool IsMockObject() const final { return true; } bool IsMockObject() const final { return true; }
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXMockObject);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXMockObject, IsMockObject()); DEFINE_AX_OBJECT_TYPE_CASTS(AXMockObject, IsMockObject());
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#ifndef AXNodeObject_h #ifndef AXNodeObject_h
#define AXNodeObject_h #define AXNodeObject_h
#include "base/macros.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXObject.h" #include "modules/accessibility/AXObject.h"
#include "platform/wtf/Forward.h"
namespace blink { namespace blink {
...@@ -41,8 +41,6 @@ class HTMLLabelElement; ...@@ -41,8 +41,6 @@ class HTMLLabelElement;
class Node; class Node;
class MODULES_EXPORT AXNodeObject : public AXObject { class MODULES_EXPORT AXNodeObject : public AXObject {
WTF_MAKE_NONCOPYABLE(AXNodeObject);
protected: protected:
AXNodeObject(Node*, AXObjectCacheImpl&); AXNodeObject(Node*, AXObjectCacheImpl&);
...@@ -236,6 +234,8 @@ class MODULES_EXPORT AXNodeObject : public AXObject { ...@@ -236,6 +234,8 @@ class MODULES_EXPORT AXNodeObject : public AXObject {
bool* found_text_alternative) const; bool* found_text_alternative) const;
bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const; bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const;
String PlaceholderFromNativeAttribute() const; String PlaceholderFromNativeAttribute() const;
DISALLOW_COPY_AND_ASSIGN(AXNodeObject);
}; };
} // namespace blink } // namespace blink
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <ostream> #include <ostream>
#include "base/macros.h"
#include "core/dom/Element.h" #include "core/dom/Element.h"
#include "core/editing/Forward.h" #include "core/editing/Forward.h"
#include "core/editing/TextAffinity.h" #include "core/editing/TextAffinity.h"
...@@ -43,7 +44,6 @@ ...@@ -43,7 +44,6 @@
#include "platform/geometry/LayoutRect.h" #include "platform/geometry/LayoutRect.h"
#include "platform/graphics/Color.h" #include "platform/graphics/Color.h"
#include "platform/weborigin/KURL.h" #include "platform/weborigin/KURL.h"
#include "platform/wtf/Forward.h"
#include "platform/wtf/Vector.h" #include "platform/wtf/Vector.h"
class SkMatrix44; class SkMatrix44;
...@@ -149,8 +149,6 @@ class IgnoredReason { ...@@ -149,8 +149,6 @@ class IgnoredReason {
class NameSourceRelatedObject class NameSourceRelatedObject
: public GarbageCollectedFinalized<NameSourceRelatedObject> { : public GarbageCollectedFinalized<NameSourceRelatedObject> {
WTF_MAKE_NONCOPYABLE(NameSourceRelatedObject);
public: public:
WeakMember<AXObject> object; WeakMember<AXObject> object;
String text; String text;
...@@ -159,6 +157,8 @@ class NameSourceRelatedObject ...@@ -159,6 +157,8 @@ class NameSourceRelatedObject
: object(object), text(text) {} : object(object), text(text) {}
void Trace(blink::Visitor* visitor) { visitor->Trace(object); } void Trace(blink::Visitor* visitor) { visitor->Trace(object); }
DISALLOW_COPY_AND_ASSIGN(NameSourceRelatedObject);
}; };
typedef HeapVector<Member<NameSourceRelatedObject>> AXRelatedObjectVector; typedef HeapVector<Member<NameSourceRelatedObject>> AXRelatedObjectVector;
...@@ -215,8 +215,6 @@ WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); ...@@ -215,8 +215,6 @@ WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource);
namespace blink { namespace blink {
class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> { class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
WTF_MAKE_NONCOPYABLE(AXObject);
public: public:
typedef HeapVector<Member<AXObject>> AXObjectVector; typedef HeapVector<Member<AXObject>> AXObjectVector;
...@@ -900,6 +898,8 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> { ...@@ -900,6 +898,8 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
AccessibilityRole RemapAriaRoleDueToParent(AccessibilityRole) const; AccessibilityRole RemapAriaRoleDueToParent(AccessibilityRole) const;
static unsigned number_of_live_ax_objects_; static unsigned number_of_live_ax_objects_;
DISALLOW_COPY_AND_ASSIGN(AXObject);
}; };
MODULES_EXPORT std::ostream& operator<<(std::ostream&, const AXObject&); MODULES_EXPORT std::ostream& operator<<(std::ostream&, const AXObject&);
......
...@@ -30,12 +30,13 @@ ...@@ -30,12 +30,13 @@
#define AXObjectCacheImpl_h #define AXObjectCacheImpl_h
#include <memory> #include <memory>
#include "base/macros.h"
#include "core/dom/AXObjectCacheBase.h" #include "core/dom/AXObjectCacheBase.h"
#include "core/dom/ContextLifecycleObserver.h" #include "core/dom/ContextLifecycleObserver.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXObject.h" #include "modules/accessibility/AXObject.h"
#include "mojo/public/cpp/bindings/binding.h" #include "mojo/public/cpp/bindings/binding.h"
#include "platform/wtf/Forward.h"
#include "platform/wtf/HashMap.h" #include "platform/wtf/HashMap.h"
#include "platform/wtf/HashSet.h" #include "platform/wtf/HashSet.h"
#include "public/platform/modules/permissions/permission.mojom-blink.h" #include "public/platform/modules/permissions/permission.mojom-blink.h"
...@@ -52,8 +53,6 @@ class LocalFrameView; ...@@ -52,8 +53,6 @@ class LocalFrameView;
class MODULES_EXPORT AXObjectCacheImpl class MODULES_EXPORT AXObjectCacheImpl
: public AXObjectCacheBase, : public AXObjectCacheBase,
public mojom::blink::PermissionObserver { public mojom::blink::PermissionObserver {
WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl);
public: public:
static AXObjectCache* Create(Document&); static AXObjectCache* Create(Document&);
...@@ -271,6 +270,8 @@ class MODULES_EXPORT AXObjectCacheImpl ...@@ -271,6 +270,8 @@ class MODULES_EXPORT AXObjectCacheImpl
// permission. // permission.
mojom::blink::PermissionServicePtr permission_service_; mojom::blink::PermissionServicePtr permission_service_;
mojo::Binding<mojom::blink::PermissionObserver> permission_observer_binding_; mojo::Binding<mojom::blink::PermissionObserver> permission_observer_binding_;
DISALLOW_COPY_AND_ASSIGN(AXObjectCacheImpl);
}; };
// This is the only subclass of AXObjectCache. // This is the only subclass of AXObjectCache.
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#ifndef AXProgressIndicator_h #ifndef AXProgressIndicator_h
#define AXProgressIndicator_h #define AXProgressIndicator_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -30,8 +31,6 @@ class HTMLProgressElement; ...@@ -30,8 +31,6 @@ class HTMLProgressElement;
class LayoutProgress; class LayoutProgress;
class AXProgressIndicator final : public AXLayoutObject { class AXProgressIndicator final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXProgressIndicator);
public: public:
static AXProgressIndicator* Create(LayoutProgress*, AXObjectCacheImpl&); static AXProgressIndicator* Create(LayoutProgress*, AXObjectCacheImpl&);
...@@ -48,6 +47,8 @@ class AXProgressIndicator final : public AXLayoutObject { ...@@ -48,6 +47,8 @@ class AXProgressIndicator final : public AXLayoutObject {
HTMLProgressElement* GetProgressElement() const; HTMLProgressElement* GetProgressElement() const;
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXProgressIndicator);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef AXRadioInput_h #ifndef AXRadioInput_h
#define AXRadioInput_h #define AXRadioInput_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -13,11 +14,9 @@ class AXObjectCacheImpl; ...@@ -13,11 +14,9 @@ class AXObjectCacheImpl;
class HTMLInputElement; class HTMLInputElement;
class AXRadioInput final : public AXLayoutObject { class AXRadioInput final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXRadioInput);
public: public:
static AXRadioInput* Create(LayoutObject*, AXObjectCacheImpl&); static AXRadioInput* Create(LayoutObject*, AXObjectCacheImpl&);
~AXRadioInput() override {} ~AXRadioInput() override = default;
bool IsAXRadioInput() const override { return true; } bool IsAXRadioInput() const override { return true; }
void UpdatePosAndSetSize(int position = 0); void UpdatePosAndSetSize(int position = 0);
...@@ -37,6 +36,8 @@ class AXRadioInput final : public AXLayoutObject { ...@@ -37,6 +36,8 @@ class AXRadioInput final : public AXLayoutObject {
int pos_in_set_; int pos_in_set_;
int set_size_; int set_size_;
DISALLOW_COPY_AND_ASSIGN(AXRadioInput);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, IsAXRadioInput()); DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, IsAXRadioInput());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXRelationCache_h #ifndef AXRelationCache_h
#define AXRelationCache_h #define AXRelationCache_h
#include "base/macros.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXObjectCacheImpl.h" #include "modules/accessibility/AXObjectCacheImpl.h"
#include "platform/wtf/HashMap.h" #include "platform/wtf/HashMap.h"
...@@ -38,8 +39,6 @@ namespace blink { ...@@ -38,8 +39,6 @@ namespace blink {
// This class should only be used from inside the accessibility directory. // This class should only be used from inside the accessibility directory.
class AXRelationCache { class AXRelationCache {
WTF_MAKE_NONCOPYABLE(AXRelationCache);
public: public:
explicit AXRelationCache(AXObjectCacheImpl*); explicit AXRelationCache(AXObjectCacheImpl*);
virtual ~AXRelationCache(); virtual ~AXRelationCache();
...@@ -120,6 +119,8 @@ class AXRelationCache { ...@@ -120,6 +119,8 @@ class AXRelationCache {
void ChildrenChanged(AXObject*); void ChildrenChanged(AXObject*);
void TextChanged(AXObject*); void TextChanged(AXObject*);
void LabelChanged(Node*); void LabelChanged(Node*);
DISALLOW_COPY_AND_ASSIGN(AXRelationCache);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXSVGRoot_h #ifndef AXSVGRoot_h
#define AXSVGRoot_h #define AXSVGRoot_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXSVGRoot final : public AXLayoutObject { class AXSVGRoot final : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXSVGRoot);
protected: protected:
AXSVGRoot(LayoutObject*, AXObjectCacheImpl&); AXSVGRoot(LayoutObject*, AXObjectCacheImpl&);
...@@ -53,6 +52,8 @@ class AXSVGRoot final : public AXLayoutObject { ...@@ -53,6 +52,8 @@ class AXSVGRoot final : public AXLayoutObject {
private: private:
AXObject* ComputeParent() const override; AXObject* ComputeParent() const override;
bool IsAXSVGRoot() const override { return true; } bool IsAXSVGRoot() const override { return true; }
DISALLOW_COPY_AND_ASSIGN(AXSVGRoot);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXSlider_h #ifndef AXSlider_h
#define AXSlider_h #define AXSlider_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
#include "modules/accessibility/AXMockObject.h" #include "modules/accessibility/AXMockObject.h"
...@@ -38,11 +39,9 @@ class AXObjectCacheImpl; ...@@ -38,11 +39,9 @@ class AXObjectCacheImpl;
class HTMLInputElement; class HTMLInputElement;
class AXSlider : public AXLayoutObject { class AXSlider : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXSlider);
public: public:
static AXSlider* Create(LayoutObject*, AXObjectCacheImpl&); static AXSlider* Create(LayoutObject*, AXObjectCacheImpl&);
~AXSlider() override {} ~AXSlider() override = default;
protected: protected:
AXSlider(LayoutObject*, AXObjectCacheImpl&); AXSlider(LayoutObject*, AXObjectCacheImpl&);
...@@ -59,14 +58,14 @@ class AXSlider : public AXLayoutObject { ...@@ -59,14 +58,14 @@ class AXSlider : public AXLayoutObject {
bool OnNativeSetValueAction(const String&) final; bool OnNativeSetValueAction(const String&) final;
AccessibilityOrientation Orientation() const final; AccessibilityOrientation Orientation() const final;
DISALLOW_COPY_AND_ASSIGN(AXSlider);
}; };
class AXSliderThumb final : public AXMockObject { class AXSliderThumb final : public AXMockObject {
WTF_MAKE_NONCOPYABLE(AXSliderThumb);
public: public:
static AXSliderThumb* Create(AXObjectCacheImpl&); static AXSliderThumb* Create(AXObjectCacheImpl&);
~AXSliderThumb() override {} ~AXSliderThumb() override = default;
AccessibilityRole RoleValue() const override { return kSliderThumbRole; } AccessibilityRole RoleValue() const override { return kSliderThumbRole; }
...@@ -75,6 +74,8 @@ class AXSliderThumb final : public AXMockObject { ...@@ -75,6 +74,8 @@ class AXSliderThumb final : public AXMockObject {
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
LayoutObject* LayoutObjectForRelativeBounds() const override; LayoutObject* LayoutObjectForRelativeBounds() const override;
DISALLOW_COPY_AND_ASSIGN(AXSliderThumb);
}; };
} // namespace blink } // namespace blink
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#ifndef AXSpinButton_h #ifndef AXSpinButton_h
#define AXSpinButton_h #define AXSpinButton_h
#include "base/macros.h"
#include "core/html/forms/SpinButtonElement.h" #include "core/html/forms/SpinButtonElement.h"
#include "modules/accessibility/AXMockObject.h" #include "modules/accessibility/AXMockObject.h"
...@@ -34,8 +35,6 @@ namespace blink { ...@@ -34,8 +35,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXSpinButton final : public AXMockObject { class AXSpinButton final : public AXMockObject {
WTF_MAKE_NONCOPYABLE(AXSpinButton);
public: public:
static AXSpinButton* Create(AXObjectCacheImpl&); static AXSpinButton* Create(AXObjectCacheImpl&);
~AXSpinButton() override; ~AXSpinButton() override;
...@@ -58,12 +57,14 @@ class AXSpinButton final : public AXMockObject { ...@@ -58,12 +57,14 @@ class AXSpinButton final : public AXMockObject {
void DetachFromParent() override; void DetachFromParent() override;
Member<SpinButtonElement> spin_button_element_; Member<SpinButtonElement> spin_button_element_;
DISALLOW_COPY_AND_ASSIGN(AXSpinButton);
}; };
class AXSpinButtonPart final : public AXMockObject { class AXSpinButtonPart final : public AXMockObject {
public: public:
static AXSpinButtonPart* Create(AXObjectCacheImpl&); static AXSpinButtonPart* Create(AXObjectCacheImpl&);
~AXSpinButtonPart() override {} ~AXSpinButtonPart() override = default;
void SetIsIncrementor(bool value) { is_incrementor_ = value; } void SetIsIncrementor(bool value) { is_incrementor_ = value; }
private: private:
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#ifndef AXTable_h #ifndef AXTable_h
#define AXTable_h #define AXTable_h
#include "base/macros.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
#include "platform/wtf/Forward.h"
namespace blink { namespace blink {
...@@ -39,8 +39,6 @@ class AXObjectCacheImpl; ...@@ -39,8 +39,6 @@ class AXObjectCacheImpl;
class AXTableCell; class AXTableCell;
class MODULES_EXPORT AXTable : public AXLayoutObject { class MODULES_EXPORT AXTable : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXTable);
protected: protected:
AXTable(LayoutObject*, AXObjectCacheImpl&); AXTable(LayoutObject*, AXObjectCacheImpl&);
...@@ -89,6 +87,8 @@ class MODULES_EXPORT AXTable : public AXLayoutObject { ...@@ -89,6 +87,8 @@ class MODULES_EXPORT AXTable : public AXLayoutObject {
bool HasARIARole() const; bool HasARIARole() const;
virtual bool IsTableExposableThroughAccessibility() const; virtual bool IsTableExposableThroughAccessibility() const;
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final;
DISALLOW_COPY_AND_ASSIGN(AXTable);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, IsAXTable()); DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, IsAXTable());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXTableCell_h #ifndef AXTableCell_h
#define AXTableCell_h #define AXTableCell_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class MODULES_EXPORT AXTableCell : public AXLayoutObject { class MODULES_EXPORT AXTableCell : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXTableCell);
protected: protected:
AXTableCell(LayoutObject*, AXObjectCacheImpl&); AXTableCell(LayoutObject*, AXObjectCacheImpl&);
...@@ -75,6 +74,8 @@ class MODULES_EXPORT AXTableCell : public AXLayoutObject { ...@@ -75,6 +74,8 @@ class MODULES_EXPORT AXTableCell : public AXLayoutObject {
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final;
unsigned aria_col_index_from_row_ = 0; unsigned aria_col_index_from_row_ = 0;
DISALLOW_COPY_AND_ASSIGN(AXTableCell);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, IsTableCell()); DEFINE_AX_OBJECT_TYPE_CASTS(AXTableCell, IsTableCell());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXTableColumn_h #ifndef AXTableColumn_h
#define AXTableColumn_h #define AXTableColumn_h
#include "base/macros.h"
#include "modules/ModulesExport.h" #include "modules/ModulesExport.h"
#include "modules/accessibility/AXMockObject.h" #include "modules/accessibility/AXMockObject.h"
#include "modules/accessibility/AXTable.h" #include "modules/accessibility/AXTable.h"
...@@ -38,8 +39,6 @@ namespace blink { ...@@ -38,8 +39,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class MODULES_EXPORT AXTableColumn final : public AXMockObject { class MODULES_EXPORT AXTableColumn final : public AXMockObject {
WTF_MAKE_NONCOPYABLE(AXTableColumn);
private: private:
explicit AXTableColumn(AXObjectCacheImpl&); explicit AXTableColumn(AXObjectCacheImpl&);
...@@ -66,6 +65,8 @@ class MODULES_EXPORT AXTableColumn final : public AXMockObject { ...@@ -66,6 +65,8 @@ class MODULES_EXPORT AXTableColumn final : public AXMockObject {
bool IsTableCol() const override { return true; } bool IsTableCol() const override { return true; }
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXTableColumn);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, IsTableCol()); DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, IsTableCol());
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXTableHeaderContainer_h #ifndef AXTableHeaderContainer_h
#define AXTableHeaderContainer_h #define AXTableHeaderContainer_h
#include "base/macros.h"
#include "modules/accessibility/AXMockObject.h" #include "modules/accessibility/AXMockObject.h"
#include "modules/accessibility/AXTable.h" #include "modules/accessibility/AXTable.h"
...@@ -37,8 +38,6 @@ namespace blink { ...@@ -37,8 +38,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class AXTableHeaderContainer final : public AXMockObject { class AXTableHeaderContainer final : public AXMockObject {
WTF_MAKE_NONCOPYABLE(AXTableHeaderContainer);
private: private:
explicit AXTableHeaderContainer(AXObjectCacheImpl&); explicit AXTableHeaderContainer(AXObjectCacheImpl&);
...@@ -54,6 +53,8 @@ class AXTableHeaderContainer final : public AXMockObject { ...@@ -54,6 +53,8 @@ class AXTableHeaderContainer final : public AXMockObject {
private: private:
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
DISALLOW_COPY_AND_ASSIGN(AXTableHeaderContainer);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#ifndef AXTableRow_h #ifndef AXTableRow_h
#define AXTableRow_h #define AXTableRow_h
#include "base/macros.h"
#include "modules/accessibility/AXLayoutObject.h" #include "modules/accessibility/AXLayoutObject.h"
namespace blink { namespace blink {
...@@ -36,8 +37,6 @@ namespace blink { ...@@ -36,8 +37,6 @@ namespace blink {
class AXObjectCacheImpl; class AXObjectCacheImpl;
class MODULES_EXPORT AXTableRow : public AXLayoutObject { class MODULES_EXPORT AXTableRow : public AXLayoutObject {
WTF_MAKE_NONCOPYABLE(AXTableRow);
protected: protected:
AXTableRow(LayoutObject*, AXObjectCacheImpl&); AXTableRow(LayoutObject*, AXObjectCacheImpl&);
...@@ -71,6 +70,8 @@ class MODULES_EXPORT AXTableRow : public AXLayoutObject { ...@@ -71,6 +70,8 @@ class MODULES_EXPORT AXTableRow : public AXLayoutObject {
int row_index_; int row_index_;
bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final;
DISALLOW_COPY_AND_ASSIGN(AXTableRow);
}; };
DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, IsTableRow()); DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, IsTableRow());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment