| 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 } | 500 } |
| 501 | 501 |
| 502 if (content_type_->SupportsGroup( | 502 if (content_type_->SupportsGroup( |
| 503 ContextMenuContentType::ITEM_GROUP_SEARCHWEBFORIMAGE)) { | 503 ContextMenuContentType::ITEM_GROUP_SEARCHWEBFORIMAGE)) { |
| 504 AppendSearchWebForImageItems(); | 504 AppendSearchWebForImageItems(); |
| 505 } | 505 } |
| 506 | 506 |
| 507 if (content_type_->SupportsGroup( | 507 if (content_type_->SupportsGroup( |
| 508 ContextMenuContentType::ITEM_GROUP_MEDIA_VIDEO)) { | 508 ContextMenuContentType::ITEM_GROUP_MEDIA_VIDEO)) { |
| 509 AppendVideoItems(); | 509 AppendVideoItems(); |
| 510 AppendImageItems(); |
| 510 } | 511 } |
| 511 | 512 |
| 512 if (content_type_->SupportsGroup( | 513 if (content_type_->SupportsGroup( |
| 513 ContextMenuContentType::ITEM_GROUP_MEDIA_AUDIO)) { | 514 ContextMenuContentType::ITEM_GROUP_MEDIA_AUDIO)) { |
| 514 AppendAudioItems(); | 515 AppendAudioItems(); |
| 515 } | 516 } |
| 516 | 517 |
| 517 if (content_type_->SupportsGroup( | 518 if (content_type_->SupportsGroup( |
| 518 ContextMenuContentType::ITEM_GROUP_MEDIA_CANVAS)) { | 519 ContextMenuContentType::ITEM_GROUP_MEDIA_CANVAS)) { |
| 519 AppendCanvasItems(); | 520 AppendCanvasItems(); |
| (...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1770 source_web_contents_->GetRenderViewHost()-> | 1771 source_web_contents_->GetRenderViewHost()-> |
| 1771 ExecuteMediaPlayerActionAtLocation(location, action); | 1772 ExecuteMediaPlayerActionAtLocation(location, action); |
| 1772 } | 1773 } |
| 1773 | 1774 |
| 1774 void RenderViewContextMenu::PluginActionAt( | 1775 void RenderViewContextMenu::PluginActionAt( |
| 1775 const gfx::Point& location, | 1776 const gfx::Point& location, |
| 1776 const WebPluginAction& action) { | 1777 const WebPluginAction& action) { |
| 1777 source_web_contents_->GetRenderViewHost()-> | 1778 source_web_contents_->GetRenderViewHost()-> |
| 1778 ExecutePluginActionAtLocation(location, action); | 1779 ExecutePluginActionAtLocation(location, action); |
| 1779 } | 1780 } |
| OLD | NEW |