diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 23:48:36 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 23:48:36 +0000 |
commit | f192a7bacddfba15ee7016e2fec2b0dcfa0ef29b (patch) | |
tree | 328c2f1e16f1558b7ac550de53c63b6f2b5ca99c | |
parent | 342bf1f950fbb64cd841b4343c3a15a4d6363caf (diff) | |
download | chromium_src-f192a7bacddfba15ee7016e2fec2b0dcfa0ef29b.zip chromium_src-f192a7bacddfba15ee7016e2fec2b0dcfa0ef29b.tar.gz chromium_src-f192a7bacddfba15ee7016e2fec2b0dcfa0ef29b.tar.bz2 |
Passing correct HWND to CreateChromeWindow(). The HWND of the toplevel window
should be passed.
BUG=9191
patch by yusukes@google.com <http://codereview.chromium.org/97011>
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14505 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index c75653c..6d45a73 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -19,6 +19,7 @@ #include "chrome/common/chrome_switches.h" #include "chrome/common/clipboard_service.h" #include "chrome/common/l10n_util.h" +#include "chrome/common/platform_util.h" #include "chrome/common/pref_service.h" #include "chrome/common/url_constants.h" #include "grit/generated_resources.h" @@ -558,10 +559,13 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { case IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS: { #if defined(OS_WIN) + // TODO(yusukes): This should be moved to some shared place of commands + // for the options stuff so that we don't have to do all this work here. FontsLanguagesWindowView* window_ = new FontsLanguagesWindowView( source_web_contents_->profile()); views::Window::CreateChromeWindow( - source_web_contents_->GetContentNativeView(), + platform_util::GetTopLevel( + source_web_contents_->GetContentNativeView()), gfx::Rect(), window_)->Show(); window_->SelectLanguagesTab(); #else |