blob: d9a197c51cd3eca0e56c2f06ba89ecc4fe9dc4fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Forward.h>
#include <LibWeb/Layout/ReplacedBox.h>
namespace Web::Layout {
class LabelableNode : public ReplacedBox {
public:
virtual void handle_associated_label_mousedown(Badge<Label>) { }
virtual void handle_associated_label_mouseup(Badge<Label>) { }
virtual void handle_associated_label_mousemove(Badge<Label>, [[maybe_unused]] bool is_inside_node_or_label) { }
protected:
LabelableNode(DOM::Document& document, DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style)
: ReplacedBox(document, element, move(style))
{
}
virtual ~LabelableNode() = default;
};
}
|