| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 7 |
| 8 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 8 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 break; | 496 break; |
| 497 case WebContextMenuData::MediaTypeVideo: | 497 case WebContextMenuData::MediaTypeVideo: |
| 498 AppendVideoItems(); | 498 AppendVideoItems(); |
| 499 break; | 499 break; |
| 500 case WebContextMenuData::MediaTypeAudio: | 500 case WebContextMenuData::MediaTypeAudio: |
| 501 AppendAudioItems(); | 501 AppendAudioItems(); |
| 502 break; | 502 break; |
| 503 case WebContextMenuData::MediaTypePlugin: | 503 case WebContextMenuData::MediaTypePlugin: |
| 504 AppendPluginItems(); | 504 AppendPluginItems(); |
| 505 break; | 505 break; |
| 506 #ifdef WEBCONTEXT_MEDIATYPEFILE_DEFINED |
| 507 case WebContextMenuData::MediaTypeFile: |
| 508 break; |
| 509 #endif |
| 506 } | 510 } |
| 507 | 511 |
| 508 if (params_.is_editable) | 512 if (params_.is_editable) |
| 509 AppendEditableItems(); | 513 AppendEditableItems(); |
| 510 else if (has_selection) | 514 else if (has_selection) |
| 511 AppendCopyItem(); | 515 AppendCopyItem(); |
| 512 | 516 |
| 513 if (has_selection) | 517 if (has_selection) |
| 514 AppendSearchProvider(); | 518 AppendSearchProvider(); |
| 515 | 519 |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), | 1542 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), |
| 1539 g_browser_process->clipboard()); | 1543 g_browser_process->clipboard()); |
| 1540 } | 1544 } |
| 1541 | 1545 |
| 1542 void RenderViewContextMenu::MediaPlayerActionAt( | 1546 void RenderViewContextMenu::MediaPlayerActionAt( |
| 1543 const gfx::Point& location, | 1547 const gfx::Point& location, |
| 1544 const WebMediaPlayerAction& action) { | 1548 const WebMediaPlayerAction& action) { |
| 1545 source_tab_contents_->render_view_host()->MediaPlayerActionAt( | 1549 source_tab_contents_->render_view_host()->MediaPlayerActionAt( |
| 1546 location, action); | 1550 location, action); |
| 1547 } | 1551 } |
| OLD | NEW |