summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/context_menu.cc6
-rw-r--r--webkit/glue/context_menu.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/context_menu.cc b/webkit/glue/context_menu.cc
index 6db5c51..b4f479c 100644
--- a/webkit/glue/context_menu.cc
+++ b/webkit/glue/context_menu.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "webkit/glue/context_menu.h"
+#include "webkit/glue/glue_serialize.h"
namespace webkit_glue {
@@ -42,6 +43,11 @@ ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
custom_context.is_pepper_menu = false;
for (size_t i = 0; i < data.customItems.size(); ++i)
custom_items.push_back(WebMenuItem(data.customItems[i]));
+
+ if (!data.frameHistoryItem.isNull()) {
+ frame_content_state =
+ webkit_glue::HistoryItemToString(data.frameHistoryItem);
+ }
}
ContextMenuParams::~ContextMenuParams() {
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index 2f38807..45a91e8 100644
--- a/webkit/glue/context_menu.h
+++ b/webkit/glue/context_menu.h
@@ -64,6 +64,10 @@ struct ContextMenuParams {
// This is the URL of the subframe that the context menu was invoked on.
GURL frame_url;
+ // This is the history item state of the subframe that the context menu was
+ // invoked on.
+ std::string frame_content_state;
+
// These are the parameters for the media element that the context menu
// was invoked on.
int media_flags;