1 /*
2 * This file is part of the popup menu implementation for <select> elements in WebCore.
3 *
4 * Copyright (C) 2007 Ryan Leavengood <leavengood@gmail.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 *
21 */
22
23 #include "config.h"
24 #include "PopupMenu.h"
25
26 #include "FrameView.h"
27
28 #include "NotImplemented.h"
29 #include <Menu.h>
30
31
32 namespace WebCore {
33
PopupMenu(PopupMenuClient * client)34 PopupMenu::PopupMenu(PopupMenuClient* client)
35 : m_popupClient(client)
36 , m_menu(0)
37 {
38 }
39
~PopupMenu()40 PopupMenu::~PopupMenu()
41 {
42 delete m_menu;
43 m_menu = 0;
44 }
45
show(const IntRect & rect,FrameView * view,int index)46 void PopupMenu::show(const IntRect& rect, FrameView* view, int index)
47 {
48 notImplemented();
49 }
50
hide()51 void PopupMenu::hide()
52 {
53 notImplemented();
54 }
55
updateFromElement()56 void PopupMenu::updateFromElement()
57 {
58 notImplemented();
59 }
60
itemWritingDirectionIsNatural()61 bool PopupMenu::itemWritingDirectionIsNatural()
62 {
63 notImplemented();
64 return true;
65 }
66
67 } // namespace WebCore
68
69