summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp')
-rw-r--r--WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp b/WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp
index 8f88f1a..e3d8e5a 100644
--- a/WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp
+++ b/WebKit/wx/WebKitSupport/ContextMenuClientWx.cpp
@@ -28,6 +28,7 @@
#include "config.h"
#include "ContextMenuClientWx.h"
#include "NotImplemented.h"
+#include "ContextMenu.h"
#include <stdio.h>
namespace WebCore {
@@ -38,13 +39,12 @@ ContextMenuClientWx::~ContextMenuClientWx()
void ContextMenuClientWx::contextMenuDestroyed()
{
- notImplemented();
+ delete this;
}
-PlatformMenuDescription ContextMenuClientWx::getCustomMenuFromDefaultItems(ContextMenu*)
+PlatformMenuDescription ContextMenuClientWx::getCustomMenuFromDefaultItems(ContextMenu* menu)
{
- notImplemented();
- return 0;
+ return menu->releasePlatformDescription();
}
void ContextMenuClientWx::contextMenuItemSelected(ContextMenuItem*,