#ifndef AXMediaControls_h
#define AXMediaControls_h
#include "core/accessibility/AXSlider.h"
#include "core/html/shadow/MediaControlElements.h"
namespace WebCore {
class AccessibilityMediaControl : public AXRenderObject {
public:
static PassRefPtr<AXObject> create(RenderObject*);
virtual ~AccessibilityMediaControl() { }
virtual AccessibilityRole roleValue() const OVERRIDE;
virtual String title() const OVERRIDE FINAL;
virtual String accessibilityDescription() const OVERRIDE;
virtual String helpText() const OVERRIDE;
protected:
explicit AccessibilityMediaControl(RenderObject*);
MediaControlElementType controlType() const;
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
class AccessibilityMediaTimeline FINAL : public AXSlider {
public:
static PassRefPtr<AXObject> create(RenderObject*);
virtual ~AccessibilityMediaTimeline() { }
virtual String helpText() const OVERRIDE;
virtual String valueDescription() const OVERRIDE;
const AtomicString& getAttribute(const QualifiedName& attribute) const;
private:
explicit AccessibilityMediaTimeline(RenderObject*);
};
class AXMediaControlsContainer FINAL : public AccessibilityMediaControl {
public:
static PassRefPtr<AXObject> create(RenderObject*);
virtual ~AXMediaControlsContainer() { }
virtual AccessibilityRole roleValue() const OVERRIDE { return ToolbarRole; }
virtual String helpText() const OVERRIDE;
virtual String accessibilityDescription() const OVERRIDE;
private:
explicit AXMediaControlsContainer(RenderObject*);
bool controllingVideoElement() const;
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
class AccessibilityMediaTimeDisplay FINAL : public AccessibilityMediaControl {
public:
static PassRefPtr<AXObject> create(RenderObject*);
virtual ~AccessibilityMediaTimeDisplay() { }
virtual AccessibilityRole roleValue() const OVERRIDE { return StaticTextRole; }
virtual String stringValue() const OVERRIDE;
virtual String accessibilityDescription() const OVERRIDE;
private:
explicit AccessibilityMediaTimeDisplay(RenderObject*);
virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
};
}
#endif