blob: a6f6d2be525cf6a56941417969a69f5dfde42570 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_ACCESSIBILITY_AX_MEDIA_ELEMENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_ACCESSIBILITY_AX_MEDIA_ELEMENT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/modules/accessibility/ax_layout_object.h"
namespace blink {
class AXObjectCacheImpl;
class AccessibilityMediaElement : public AXLayoutObject {
public:
static AXObject* Create(LayoutObject*, AXObjectCacheImpl&);
AccessibilityMediaElement(LayoutObject*, AXObjectCacheImpl&);
~AccessibilityMediaElement() override = default;
// AXLayoutObject overrides.
String TextAlternative(bool recursive,
bool in_aria_labelled_by_traversal,
AXObjectSet& visited,
ax::mojom::NameFrom&,
AXRelatedObjectVector*,
NameSources*) const override;
// AXNodeObject overrides.
AXRestriction Restriction() const override;
protected:
bool IsUnplayable() const;
DISALLOW_COPY_AND_ASSIGN(AccessibilityMediaElement);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_ACCESSIBILITY_AX_MEDIA_ELEMENT_H_