1 | /* |
2 | * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | * Copyright (C) 2006, 2015 Apple Inc. |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public License |
16 | * along with this library; see the file COPYING.LIB. If not, write to |
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | * Boston, MA 02110-1301, USA. |
19 | * |
20 | */ |
21 | |
22 | #ifndef PopupMenuClient_h |
23 | #define |
24 | |
25 | #include "LayoutUnit.h" |
26 | #include "PopupMenuStyle.h" |
27 | #include "ScrollTypes.h" |
28 | #include <wtf/Forward.h> |
29 | |
30 | namespace WebCore { |
31 | |
32 | class Color; |
33 | class FontSelector; |
34 | class HostWindow; |
35 | class Scrollbar; |
36 | class ScrollableArea; |
37 | |
38 | class { |
39 | public: |
40 | virtual () = default; |
41 | virtual void (unsigned listIndex, bool fireEvents = true) = 0; |
42 | virtual void (unsigned listIndex, bool fireEvents = true) = 0; |
43 | virtual void () = 0; |
44 | |
45 | virtual String (unsigned listIndex) const = 0; |
46 | virtual String (unsigned listIndex) const = 0; |
47 | virtual String (unsigned listIndex) const = 0; |
48 | virtual String (unsigned listIndex) const = 0; |
49 | virtual String (unsigned listIndex) const = 0; |
50 | virtual bool (unsigned listIndex) const = 0; |
51 | virtual PopupMenuStyle (unsigned listIndex) const = 0; |
52 | virtual PopupMenuStyle () const = 0; |
53 | virtual int () const = 0; |
54 | virtual int () const = 0; |
55 | virtual LayoutUnit () const = 0; |
56 | virtual LayoutUnit () const = 0; |
57 | virtual int () const = 0; |
58 | virtual int () const = 0; |
59 | virtual void () = 0; |
60 | virtual bool (unsigned listIndex) const = 0; |
61 | virtual bool (unsigned listIndex) const = 0; |
62 | virtual bool (unsigned listIndex) const = 0; |
63 | virtual bool () const = 0; |
64 | virtual bool () const = 0; |
65 | virtual void (unsigned listIndex) = 0; |
66 | |
67 | virtual void (int /*listIndex*/, bool /*allowMultiplySelections*/, bool /*shift*/, bool /*fireOnChangeNow*/ = true) { ASSERT_NOT_REACHED(); } |
68 | virtual bool () const |
69 | { |
70 | ASSERT_NOT_REACHED(); |
71 | return false; |
72 | } |
73 | |
74 | virtual FontSelector* () const = 0; |
75 | virtual HostWindow* () const = 0; |
76 | |
77 | virtual Ref<Scrollbar> (ScrollableArea&, ScrollbarOrientation, ScrollbarControlSize) = 0; |
78 | }; |
79 | |
80 | } |
81 | |
82 | #endif |
83 | |