OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 5 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1768 source_web_contents_, original_lang, target_lang); | 1768 source_web_contents_, original_lang, target_lang); |
1769 break; | 1769 break; |
1770 } | 1770 } |
1771 | 1771 |
1772 case IDC_CONTENT_CONTEXT_RELOADFRAME: | 1772 case IDC_CONTENT_CONTEXT_RELOADFRAME: |
1773 rvh->ReloadFrame(); | 1773 rvh->ReloadFrame(); |
1774 break; | 1774 break; |
1775 | 1775 |
1776 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: | 1776 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: |
1777 source_web_contents_->ViewFrameSource(params_.frame_url, | 1777 source_web_contents_->ViewFrameSource(params_.frame_url, |
1778 params_.frame_content_state); | 1778 params_.frame_page_state); |
1779 break; | 1779 break; |
1780 | 1780 |
1781 case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO: { | 1781 case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO: { |
1782 Browser* browser = chrome::FindBrowserWithWebContents( | 1782 Browser* browser = chrome::FindBrowserWithWebContents( |
1783 source_web_contents_); | 1783 source_web_contents_); |
1784 chrome::ShowWebsiteSettings(browser, source_web_contents_, | 1784 chrome::ShowWebsiteSettings(browser, source_web_contents_, |
1785 params_.frame_url, params_.security_info, | 1785 params_.frame_url, params_.security_info, |
1786 false); | 1786 false); |
1787 break; | 1787 break; |
1788 } | 1788 } |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 source_web_contents_->GetRenderViewHost()-> | 2038 source_web_contents_->GetRenderViewHost()-> |
2039 ExecuteMediaPlayerActionAtLocation(location, action); | 2039 ExecuteMediaPlayerActionAtLocation(location, action); |
2040 } | 2040 } |
2041 | 2041 |
2042 void RenderViewContextMenu::PluginActionAt( | 2042 void RenderViewContextMenu::PluginActionAt( |
2043 const gfx::Point& location, | 2043 const gfx::Point& location, |
2044 const WebPluginAction& action) { | 2044 const WebPluginAction& action) { |
2045 source_web_contents_->GetRenderViewHost()-> | 2045 source_web_contents_->GetRenderViewHost()-> |
2046 ExecutePluginActionAtLocation(location, action); | 2046 ExecutePluginActionAtLocation(location, action); |
2047 } | 2047 } |
OLD | NEW |