From a4f10c5daca80538c455e013b69b7cdc55be4a62 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Mon, 25 Jul 2011 09:42:01 +0000 Subject: Include the tab IDs in onBeforeRetarget events and always post the correct frame ID. Also, we only send the onBeforeRetarget event if the URL is opened from within the web page, but not the chrome (incl. infobars) BUG=none TEST=none Review URL: http://codereview.chromium.org/7343014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93865 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/context_menu.cc | 2 ++ webkit/glue/context_menu.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'webkit/glue') diff --git a/webkit/glue/context_menu.cc b/webkit/glue/context_menu.cc index 2363a97..f7f959f 100644 --- a/webkit/glue/context_menu.cc +++ b/webkit/glue/context_menu.cc @@ -22,6 +22,7 @@ ContextMenuParams::ContextMenuParams() x(0), y(0), is_image_blocked(false), + frame_id(0), media_flags(0), spellcheck_enabled(false), is_editable(false), @@ -39,6 +40,7 @@ ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data) page_url(data.pageURL), keyword_url(data.keywordURL), frame_url(data.frameURL), + frame_id(0), media_flags(data.mediaFlags), selection_text(data.selectedText), misspelled_word(data.misspelledWord), diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h index 3a70bbd..6837859 100644 --- a/webkit/glue/context_menu.h +++ b/webkit/glue/context_menu.h @@ -73,6 +73,9 @@ struct ContextMenuParams { // This is the URL of the subframe that the context menu was invoked on. GURL frame_url; + // This is the ID of the subframe that the context menu was invoked on. + int64 frame_id; + // This is the history item state of the subframe that the context menu was // invoked on. std::string frame_content_state; -- cgit v1.1