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

Unified Diff: chrome/browser/render_view_context_menu_controller.cc

Issue 15031: Input box's context menu/language settings should set ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/views/options/fonts_languages_window_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/render_view_context_menu_controller.cc
===================================================================
--- chrome/browser/render_view_context_menu_controller.cc (revision 7195)
+++ chrome/browser/render_view_context_menu_controller.cc (working copy)
@@ -459,13 +459,14 @@
params_.misspelled_word);
break;
- case IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS:
- views::Window::CreateChromeWindow(
- source_web_contents_->GetContentHWND(),
- gfx::Rect(),
- new FontsLanguagesWindowView(
- source_web_contents_->profile()))->Show();
+ case IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS: {
+ FontsLanguagesWindowView* window_ = new FontsLanguagesWindowView(
+ source_web_contents_->profile());
+ views::Window::CreateChromeWindow(source_web_contents_->GetContentHWND(),
+ gfx::Rect(), window_)->Show();
+ window_->SelectLanguagesTab();
break;
+ }
case IDS_CONTENT_CONTEXT_ADDSEARCHENGINE: // Not implemented.
default:
« no previous file with comments | « no previous file | chrome/browser/views/options/fonts_languages_window_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698