blob: 9a8e598e00582d6d24a333c3f727adbc727dddc5 [file] [log] [blame]
// Copyright 2014 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 HTMLMenuItemElement_h
#define HTMLMenuItemElement_h
#include "core/html/HTMLElement.h"
namespace blink {
class HTMLMenuItemElement final : public HTMLElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(HTMLMenuItemElement);
// https://html.spec.whatwg.org/multipage/forms.html#dom-menuitem-label
String label() const;
void setLabel(const AtomicString&);
// https://html.spec.whatwg.org/multipage/forms.html#concept-menuitem-label
String conceptualLabel() const;
private:
explicit HTMLMenuItemElement(Document&);
bool IsURLAttribute(const Attribute&) const override;
void ParseAttribute(const AttributeModificationParams&) override;
void DefaultEventHandler(Event*) override;
};
} // namespace blink
#endif // HTMLMenuItemElement_h