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 <algorithm> | 5 #include <algorithm> |
6 #include <set> | 6 #include <set> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 9 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
10 | 10 |
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 source_web_contents_); | 1659 source_web_contents_); |
1660 if (!tab_contents_wrapper) | 1660 if (!tab_contents_wrapper) |
1661 break; | 1661 break; |
1662 if (g_browser_process->local_state()->GetBoolean( | 1662 if (g_browser_process->local_state()->GetBoolean( |
1663 prefs::kPrintPreviewDisabled)) { | 1663 prefs::kPrintPreviewDisabled)) { |
1664 tab_contents_wrapper->print_view_manager()->PrintNow(); | 1664 tab_contents_wrapper->print_view_manager()->PrintNow(); |
1665 } else { | 1665 } else { |
1666 tab_contents_wrapper->print_view_manager()->PrintPreviewNow(); | 1666 tab_contents_wrapper->print_view_manager()->PrintPreviewNow(); |
1667 } | 1667 } |
1668 } else { | 1668 } else { |
1669 rvh->Send(new PrintMsg_PrintNodeUnderContextMenu(rvh->routing_id())); | 1669 rvh->Send(new PrintMsg_PrintNodeUnderContextMenu(rvh->GetRoutingID())); |
1670 } | 1670 } |
1671 break; | 1671 break; |
1672 | 1672 |
1673 case IDC_VIEW_SOURCE: | 1673 case IDC_VIEW_SOURCE: |
1674 source_web_contents_->ViewSource(); | 1674 source_web_contents_->ViewSource(); |
1675 break; | 1675 break; |
1676 | 1676 |
1677 case IDC_CONTENT_CONTEXT_INSPECTELEMENT: | 1677 case IDC_CONTENT_CONTEXT_INSPECTELEMENT: |
1678 Inspect(params_.x, params_.y); | 1678 Inspect(params_.x, params_.y); |
1679 break; | 1679 break; |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 source_web_contents_->GetRenderViewHost()-> | 1990 source_web_contents_->GetRenderViewHost()-> |
1991 ExecuteMediaPlayerActionAtLocation(location, action); | 1991 ExecuteMediaPlayerActionAtLocation(location, action); |
1992 } | 1992 } |
1993 | 1993 |
1994 void RenderViewContextMenu::PluginActionAt( | 1994 void RenderViewContextMenu::PluginActionAt( |
1995 const gfx::Point& location, | 1995 const gfx::Point& location, |
1996 const WebPluginAction& action) { | 1996 const WebPluginAction& action) { |
1997 source_web_contents_->GetRenderViewHost()-> | 1997 source_web_contents_->GetRenderViewHost()-> |
1998 ExecutePluginActionAtLocation(location, action); | 1998 ExecutePluginActionAtLocation(location, action); |
1999 } | 1999 } |
OLD | NEW |