#ifndef UI_ACCESSIBILITY_PLATFORM_INSPECT_AX_SCRIPT_INSTRUCTION_H_
#define UI_ACCESSIBILITY_PLATFORM_INSPECT_AX_SCRIPT_INSTRUCTION_H_
#include <string>
#include "base/component_export.h"
namespace ui {
class AXPropertyNode;
class COMPONENT_EXPORT(AX_PLATFORM) AXScriptInstruction final {
public:
explicit AXScriptInstruction(const std::string& instruction);
bool IsEvent() const;
bool IsKeyEvent() const;
bool IsScript() const;
bool IsComment() const;
bool IsPrintTree() const;
AXPropertyNode AsScript() const;
std::string AsDomKeyString() const;
std::string AsEvent() const;
std::string AsComment() const;
private:
size_t EventNameStartIndex() const;
std::string instruction_;
};
}
#endif