Selector.h 391 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <AK/AKString.h>
  3. #include <AK/Vector.h>
  4. class Selector {
  5. public:
  6. Selector();
  7. ~Selector();
  8. struct Component {
  9. enum class Type { Invalid, TagName, Id, Class };
  10. Type type { Type::Invalid };
  11. String value;
  12. };
  13. const Vector<Component>& components() const { return m_components; }
  14. private:
  15. Vector<Component> m_components;
  16. };