OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer_context_menu/render_view_context_menu.h" | 5 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 | 1809 |
1810 case IDC_FORWARD: | 1810 case IDC_FORWARD: |
1811 embedder_web_contents_->GetController().GoForward(); | 1811 embedder_web_contents_->GetController().GoForward(); |
1812 break; | 1812 break; |
1813 | 1813 |
1814 case IDC_SAVE_PAGE: | 1814 case IDC_SAVE_PAGE: |
1815 embedder_web_contents_->OnSavePage(); | 1815 embedder_web_contents_->OnSavePage(); |
1816 break; | 1816 break; |
1817 | 1817 |
1818 case IDC_RELOAD: | 1818 case IDC_RELOAD: |
1819 embedder_web_contents_->GetController().Reload(true); | 1819 embedder_web_contents_->GetController().Reload( |
| 1820 content::ReloadType::NORMAL, true); |
1820 break; | 1821 break; |
1821 | 1822 |
1822 case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: | 1823 case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: |
1823 ExecReloadPackagedApp(); | 1824 ExecReloadPackagedApp(); |
1824 break; | 1825 break; |
1825 | 1826 |
1826 case IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP: | 1827 case IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP: |
1827 ExecRestartPackagedApp(); | 1828 ExecRestartPackagedApp(); |
1828 break; | 1829 break; |
1829 | 1830 |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2507 void RenderViewContextMenu::PluginActionAt( | 2508 void RenderViewContextMenu::PluginActionAt( |
2508 const gfx::Point& location, | 2509 const gfx::Point& location, |
2509 const WebPluginAction& action) { | 2510 const WebPluginAction& action) { |
2510 source_web_contents_->GetRenderViewHost()-> | 2511 source_web_contents_->GetRenderViewHost()-> |
2511 ExecutePluginActionAtLocation(location, action); | 2512 ExecutePluginActionAtLocation(location, action); |
2512 } | 2513 } |
2513 | 2514 |
2514 Browser* RenderViewContextMenu::GetBrowser() const { | 2515 Browser* RenderViewContextMenu::GetBrowser() const { |
2515 return chrome::FindBrowserWithWebContents(embedder_web_contents_); | 2516 return chrome::FindBrowserWithWebContents(embedder_web_contents_); |
2516 } | 2517 } |
OLD | NEW |