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

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

Issue 6670011: Options: Remove the GTK and Views native options code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 9 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
OLDNEW
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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 if (!spellcheck_host) { 1415 if (!spellcheck_host) {
1416 NOTREACHED(); 1416 NOTREACHED();
1417 break; 1417 break;
1418 } 1418 }
1419 spellcheck_host->AddWord(UTF16ToUTF8(params_.misspelled_word)); 1419 spellcheck_host->AddWord(UTF16ToUTF8(params_.misspelled_word));
1420 SpellCheckerPlatform::AddWord(params_.misspelled_word); 1420 SpellCheckerPlatform::AddWord(params_.misspelled_word);
1421 break; 1421 break;
1422 } 1422 }
1423 1423
1424 case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS: 1424 case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS:
1425 ShowFontsLanguagesWindow( 1425 OpenURL(GURL(chrome::kLanguageOptionsSubPage), NEW_FOREGROUND_TAB,
1426 platform_util::GetTopLevel( 1426 PageTransition::LINK);
1427 source_tab_contents_->GetContentNativeView()),
1428 LANGUAGES_PAGE, profile_);
1429 break; 1427 break;
1430 1428
1431 case IDC_SPELLPANEL_TOGGLE: 1429 case IDC_SPELLPANEL_TOGGLE:
1432 source_tab_contents_->render_view_host()->ToggleSpellPanel( 1430 source_tab_contents_->render_view_host()->ToggleSpellPanel(
1433 SpellCheckerPlatform::SpellingPanelVisible()); 1431 SpellCheckerPlatform::SpellingPanelVisible());
1434 break; 1432 break;
1435 1433
1436 #if defined(OS_MACOSX) 1434 #if defined(OS_MACOSX)
1437 case IDC_WRITING_DIRECTION_DEFAULT: 1435 case IDC_WRITING_DIRECTION_DEFAULT:
1438 // WebKit's current behavior is for this menu item to always be disabled. 1436 // WebKit's current behavior is for this menu item to always be disabled.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), 1531 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages),
1534 g_browser_process->clipboard()); 1532 g_browser_process->clipboard());
1535 } 1533 }
1536 1534
1537 void RenderViewContextMenu::MediaPlayerActionAt( 1535 void RenderViewContextMenu::MediaPlayerActionAt(
1538 const gfx::Point& location, 1536 const gfx::Point& location,
1539 const WebMediaPlayerAction& action) { 1537 const WebMediaPlayerAction& action) {
1540 source_tab_contents_->render_view_host()->MediaPlayerActionAt( 1538 source_tab_contents_->render_view_host()->MediaPlayerActionAt(
1541 location, action); 1539 location, action);
1542 } 1540 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_options_menu_model.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698