Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 6258002: Make the Linux build not fail because of an unhandled enum. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698