1 | /* |
2 | * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Library General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | * Library General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Library General Public License |
15 | * along with this library; see the file COPYING.LIB. If not, write to |
16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | * Boston, MA 02110-1301, USA. |
18 | * |
19 | */ |
20 | |
21 | #ifndef WebContextMenu_h |
22 | #define |
23 | |
24 | #if ENABLE(CONTEXT_MENUS) |
25 | |
26 | #include "WebContextMenuItemData.h" |
27 | |
28 | #include <wtf/RefCounted.h> |
29 | #include <wtf/RefPtr.h> |
30 | |
31 | namespace WebCore { |
32 | class Image; |
33 | } |
34 | |
35 | namespace WebKit { |
36 | |
37 | class ShareableBitmap; |
38 | class WebPage; |
39 | |
40 | class : public RefCounted<WebContextMenu> { |
41 | public: |
42 | static Ref<WebContextMenu> (WebPage* page) |
43 | { |
44 | return adoptRef(*new WebContextMenu(page)); |
45 | } |
46 | |
47 | (); |
48 | |
49 | void (); |
50 | void (const WebContextMenuItemData&); |
51 | Vector<WebContextMenuItemData> () const; |
52 | |
53 | private: |
54 | (WebPage*); |
55 | void (Vector<WebContextMenuItemData>&, RefPtr<API::Object>&) const; |
56 | |
57 | WebPage* ; |
58 | }; |
59 | |
60 | } // namespace WebKit |
61 | |
62 | #endif // ENABLE(CONTEXT_MENUS) |
63 | #endif // WebPopupMenu_h |
64 | |