| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 case IDC_RELOAD: | 1637 case IDC_RELOAD: |
| 1638 source_web_contents_->GetController().Reload(true); | 1638 source_web_contents_->GetController().Reload(true); |
| 1639 break; | 1639 break; |
| 1640 | 1640 |
| 1641 case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: { | 1641 case IDC_CONTENT_CONTEXT_RELOAD_PACKAGED_APP: { |
| 1642 const Extension* platform_app = GetExtension(); | 1642 const Extension* platform_app = GetExtension(); |
| 1643 DCHECK(platform_app); | 1643 DCHECK(platform_app); |
| 1644 DCHECK(platform_app->is_platform_app()); | 1644 DCHECK(platform_app->is_platform_app()); |
| 1645 | 1645 |
| 1646 extensions::ExtensionSystem::Get(profile_)->extension_service()-> | 1646 extensions::ExtensionSystem::Get(profile_)->extension_service()-> |
| 1647 ReloadExtension(platform_app->id()); | 1647 ReloadExtension(platform_app->id(), true); |
| 1648 break; | 1648 break; |
| 1649 } | 1649 } |
| 1650 | 1650 |
| 1651 case IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP: { | 1651 case IDC_CONTENT_CONTEXT_RESTART_PACKAGED_APP: { |
| 1652 const Extension* platform_app = GetExtension(); | 1652 const Extension* platform_app = GetExtension(); |
| 1653 DCHECK(platform_app); | 1653 DCHECK(platform_app); |
| 1654 DCHECK(platform_app->is_platform_app()); | 1654 DCHECK(platform_app->is_platform_app()); |
| 1655 | 1655 |
| 1656 apps::AppLoadService::Get(profile_)->RestartApplication( | 1656 apps::AppLoadService::Get(profile_)->RestartApplication( |
| 1657 platform_app->id()); | 1657 platform_app->id()); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 source_web_contents_->GetRenderViewHost()-> | 1993 source_web_contents_->GetRenderViewHost()-> |
| 1994 ExecuteMediaPlayerActionAtLocation(location, action); | 1994 ExecuteMediaPlayerActionAtLocation(location, action); |
| 1995 } | 1995 } |
| 1996 | 1996 |
| 1997 void RenderViewContextMenu::PluginActionAt( | 1997 void RenderViewContextMenu::PluginActionAt( |
| 1998 const gfx::Point& location, | 1998 const gfx::Point& location, |
| 1999 const WebPluginAction& action) { | 1999 const WebPluginAction& action) { |
| 2000 source_web_contents_->GetRenderViewHost()-> | 2000 source_web_contents_->GetRenderViewHost()-> |
| 2001 ExecutePluginActionAtLocation(location, action); | 2001 ExecutePluginActionAtLocation(location, action); |
| 2002 } | 2002 } |
| OLD | NEW |