| 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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 source_web_contents_, original_lang, target_lang); | 1782 source_web_contents_, original_lang, target_lang); |
| 1783 break; | 1783 break; |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 case IDC_CONTENT_CONTEXT_RELOADFRAME: | 1786 case IDC_CONTENT_CONTEXT_RELOADFRAME: |
| 1787 rvh->ReloadFrame(); | 1787 rvh->ReloadFrame(); |
| 1788 break; | 1788 break; |
| 1789 | 1789 |
| 1790 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: | 1790 case IDC_CONTENT_CONTEXT_VIEWFRAMESOURCE: |
| 1791 source_web_contents_->ViewFrameSource(params_.frame_url, | 1791 source_web_contents_->ViewFrameSource(params_.frame_url, |
| 1792 params_.frame_content_state); | 1792 params_.frame_page_state); |
| 1793 break; | 1793 break; |
| 1794 | 1794 |
| 1795 case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO: { | 1795 case IDC_CONTENT_CONTEXT_VIEWFRAMEINFO: { |
| 1796 Browser* browser = chrome::FindBrowserWithWebContents( | 1796 Browser* browser = chrome::FindBrowserWithWebContents( |
| 1797 source_web_contents_); | 1797 source_web_contents_); |
| 1798 chrome::ShowWebsiteSettings(browser, source_web_contents_, | 1798 chrome::ShowWebsiteSettings(browser, source_web_contents_, |
| 1799 params_.frame_url, params_.security_info, | 1799 params_.frame_url, params_.security_info, |
| 1800 false); | 1800 false); |
| 1801 break; | 1801 break; |
| 1802 } | 1802 } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2046 source_web_contents_->GetRenderViewHost()-> | 2046 source_web_contents_->GetRenderViewHost()-> |
| 2047 ExecuteMediaPlayerActionAtLocation(location, action); | 2047 ExecuteMediaPlayerActionAtLocation(location, action); |
| 2048 } | 2048 } |
| 2049 | 2049 |
| 2050 void RenderViewContextMenu::PluginActionAt( | 2050 void RenderViewContextMenu::PluginActionAt( |
| 2051 const gfx::Point& location, | 2051 const gfx::Point& location, |
| 2052 const WebPluginAction& action) { | 2052 const WebPluginAction& action) { |
| 2053 source_web_contents_->GetRenderViewHost()-> | 2053 source_web_contents_->GetRenderViewHost()-> |
| 2054 ExecutePluginActionAtLocation(location, action); | 2054 ExecutePluginActionAtLocation(location, action); |
| 2055 } | 2055 } |
| OLD | NEW |