Commit 8de86537 authored by Sundoo Kim's avatar Sundoo Kim Committed by Commit Bot

Replace DISALLOW_COPY_AND_ASSIGN with =delete in blink/../accessbility

Explicitly remove the copy constructor and assignment operator with
the delete keyword.

Bug: 1010217
Change-Id: Ic3450e3f9b42d3ee530460f34f42e0def6b42ab9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2368572Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801300}
parent fdf173ab
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_CONTEXT_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_CONTEXT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_CONTEXT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_CONTEXT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/platform/heap/persistent.h" #include "third_party/blink/renderer/platform/heap/persistent.h"
...@@ -23,6 +22,8 @@ class CORE_EXPORT AXContext { ...@@ -23,6 +22,8 @@ class CORE_EXPORT AXContext {
public: public:
explicit AXContext(Document& document); explicit AXContext(Document& document);
AXContext(const AXContext&) = delete;
AXContext& operator=(const AXContext&) = delete;
virtual ~AXContext(); virtual ~AXContext();
// Note: it's an error to call this after |document| is no longer active. // Note: it's an error to call this after |document| is no longer active.
...@@ -31,8 +32,6 @@ class CORE_EXPORT AXContext { ...@@ -31,8 +32,6 @@ class CORE_EXPORT AXContext {
protected: protected:
WeakPersistent<Document> document_; WeakPersistent<Document> document_;
DISALLOW_COPY_AND_ASSIGN(AXContext);
}; };
} // namespace blink } // namespace blink
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <memory> #include <memory>
#include "base/macros.h"
#include "third_party/blink/renderer/core/accessibility/axid.h" #include "third_party/blink/renderer/core/accessibility/axid.h"
#include "third_party/blink/renderer/core/accessibility/blink_ax_event_intent.h" #include "third_party/blink/renderer/core/accessibility/blink_ax_event_intent.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
...@@ -57,6 +56,8 @@ class CORE_EXPORT AXObjectCache : public GarbageCollected<AXObjectCache> { ...@@ -57,6 +56,8 @@ class CORE_EXPORT AXObjectCache : public GarbageCollected<AXObjectCache> {
static AXObjectCache* Create(Document&); static AXObjectCache* Create(Document&);
AXObjectCache(const AXObjectCache&) = delete;
AXObjectCache& operator=(const AXObjectCache&) = delete;
virtual ~AXObjectCache() = default; virtual ~AXObjectCache() = default;
virtual void Trace(Visitor*) const {} virtual void Trace(Visitor*) const {}
...@@ -180,7 +181,6 @@ class CORE_EXPORT AXObjectCache : public GarbageCollected<AXObjectCache> { ...@@ -180,7 +181,6 @@ class CORE_EXPORT AXObjectCache : public GarbageCollected<AXObjectCache> {
AXObjectCache() = default; AXObjectCache() = default;
static AXObjectCacheCreateFunction create_function_; static AXObjectCacheCreateFunction create_function_;
DISALLOW_COPY_AND_ASSIGN(AXObjectCache);
}; };
} // namespace blink } // namespace blink
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_OBJECT_CACHE_BASE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_OBJECT_CACHE_BASE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_OBJECT_CACHE_BASE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_ACCESSIBILITY_AX_OBJECT_CACHE_BASE_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/accessibility/ax_object_cache.h" #include "third_party/blink/renderer/core/accessibility/ax_object_cache.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/wtf/casting.h" #include "third_party/blink/renderer/platform/wtf/casting.h"
...@@ -24,6 +23,8 @@ class AXObject; ...@@ -24,6 +23,8 @@ class AXObject;
// new public API methods or similar) and remove this class. // new public API methods or similar) and remove this class.
class CORE_EXPORT AXObjectCacheBase : public AXObjectCache { class CORE_EXPORT AXObjectCacheBase : public AXObjectCache {
public: public:
AXObjectCacheBase(const AXObjectCacheBase&) = delete;
AXObjectCacheBase& operator=(const AXObjectCacheBase&) = delete;
~AXObjectCacheBase() override = default; ~AXObjectCacheBase() override = default;
virtual AXObject* Get(const Node*) = 0; virtual AXObject* Get(const Node*) = 0;
...@@ -31,7 +32,6 @@ class CORE_EXPORT AXObjectCacheBase : public AXObjectCache { ...@@ -31,7 +32,6 @@ class CORE_EXPORT AXObjectCacheBase : public AXObjectCache {
protected: protected:
AXObjectCacheBase() = default; AXObjectCacheBase() = default;
DISALLOW_COPY_AND_ASSIGN(AXObjectCacheBase);
}; };
template <> template <>
......
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