OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 break; | 392 break; |
393 case WebContextMenuData::MediaTypeImage: | 393 case WebContextMenuData::MediaTypeImage: |
394 AppendImageItems(); | 394 AppendImageItems(); |
395 break; | 395 break; |
396 case WebContextMenuData::MediaTypeVideo: | 396 case WebContextMenuData::MediaTypeVideo: |
397 AppendVideoItems(); | 397 AppendVideoItems(); |
398 break; | 398 break; |
399 case WebContextMenuData::MediaTypeAudio: | 399 case WebContextMenuData::MediaTypeAudio: |
400 AppendAudioItems(); | 400 AppendAudioItems(); |
401 break; | 401 break; |
| 402 default: |
| 403 break; |
402 } | 404 } |
403 | 405 |
404 if (params_.is_editable) | 406 if (params_.is_editable) |
405 AppendEditableItems(); | 407 AppendEditableItems(); |
406 else if (has_selection) | 408 else if (has_selection) |
407 AppendCopyItem(); | 409 AppendCopyItem(); |
408 | 410 |
409 if (has_selection) | 411 if (has_selection) |
410 AppendSearchProvider(); | 412 AppendSearchProvider(); |
411 | 413 |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), | 1453 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), |
1452 g_browser_process->clipboard()); | 1454 g_browser_process->clipboard()); |
1453 } | 1455 } |
1454 | 1456 |
1455 void RenderViewContextMenu::MediaPlayerActionAt( | 1457 void RenderViewContextMenu::MediaPlayerActionAt( |
1456 const gfx::Point& location, | 1458 const gfx::Point& location, |
1457 const WebMediaPlayerAction& action) { | 1459 const WebMediaPlayerAction& action) { |
1458 source_tab_contents_->render_view_host()->MediaPlayerActionAt( | 1460 source_tab_contents_->render_view_host()->MediaPlayerActionAt( |
1459 location, action); | 1461 location, action); |
1460 } | 1462 } |
OLD | NEW |