diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-03 21:58:55 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-03 21:58:55 +0000 |
commit | 0be760d001ecbc6d0e2d1b0e350560144b64439b (patch) | |
tree | 2d9db42ef60b8e49560638e7ee47657ca53e0aa8 /chrome/browser/tab_contents | |
parent | b5fd4ae31f167171389a6341778fe494b7424ae3 (diff) | |
download | chromium_src-0be760d001ecbc6d0e2d1b0e350560144b64439b.zip chromium_src-0be760d001ecbc6d0e2d1b0e350560144b64439b.tar.gz chromium_src-0be760d001ecbc6d0e2d1b0e350560144b64439b.tar.bz2 |
Remove "Open frame in new xxx" context menu options.
BUG=33074
TEST=trybots
Review URL: http://codereview.chromium.org/5523002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index fde37d4..79325e8 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -551,15 +551,6 @@ void RenderViewContextMenu::AppendFrameItems() { menu_model_.AddSeparator(); menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_RELOADFRAME, IDS_CONTENT_CONTEXT_RELOADFRAME); - menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENFRAMENEWTAB, - IDS_CONTENT_CONTEXT_OPENFRAMENEWTAB); - menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENFRAMENEWWINDOW, - IDS_CONTENT_CONTEXT_OPENFRAMENEWWINDOW); - if (!external_) { - menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENFRAMEOFFTHERECORD, - IDS_CONTENT_CONTEXT_OPENFRAMEOFFTHERECORD); - } - menu_model_.AddSeparator(); // These two menu items have yet to be implemented. // http://code.google.com/p/chromium/issues/detail?id=11827 @@ -912,8 +903,6 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const { } case IDC_CONTENT_CONTEXT_RELOADFRAME: - case IDC_CONTENT_CONTEXT_OPENFRAMENEWTAB: - case IDC_CONTENT_CONTEXT_OPENFRAMENEWWINDOW: return params_.frame_url.is_valid(); case IDC_CONTENT_CONTEXT_UNDO: @@ -940,9 +929,6 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) const { case IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD: return !profile_->IsOffTheRecord() && params_.link_url.is_valid(); - case IDC_CONTENT_CONTEXT_OPENFRAMEOFFTHERECORD: - return !profile_->IsOffTheRecord() && params_.frame_url.is_valid(); - case IDC_SPELLCHECK_ADD_TO_DICTIONARY: return !params_.misspelled_word.empty(); @@ -1269,18 +1255,6 @@ void RenderViewContextMenu::ExecuteCommand(int id) { source_tab_contents_->render_view_host()->ReloadFrame(); break; - case IDC_CONTENT_CONTEXT_OPENFRAMENEWTAB: - OpenURL(params_.frame_url, NEW_BACKGROUND_TAB, PageTransition::LINK); - break; - - case IDC_CONTENT_CONTEXT_OPENFRAMENEWWINDOW: - OpenURL(params_.frame_url, NEW_WINDOW, PageTransition::LINK); - break; - - case IDC_CONTENT_CONTEXT_OPENFRAMEOFFTHERECORD: - OpenURL(params_.frame_url, OFF_THE_RECORD, PageTransition::LINK); - break; - case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: OpenURL(GURL(chrome::kViewSourceScheme + std::string(":") + params_.frame_url.spec()), NEW_FOREGROUND_TAB, PageTransition::LINK); |