summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 00:30:32 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 00:30:32 +0000
commitd615ad7ae65beddc26c9833b7bfd1d7bdb6f3d7b (patch)
treeee692e43ef5cc38b4d64caaffe0c24232d006623 /chrome/browser/tab_contents
parent29e1eff79f5c6eae302a545124f636d1d48ef623 (diff)
downloadchromium_src-d615ad7ae65beddc26c9833b7bfd1d7bdb6f3d7b.zip
chromium_src-d615ad7ae65beddc26c9833b7bfd1d7bdb6f3d7b.tar.gz
chromium_src-d615ad7ae65beddc26c9833b7bfd1d7bdb6f3d7b.tar.bz2
Rename RenderWidgetHostView::GetPluginHWND to GetPluginNativeView
Review URL: http://codereview.chromium.org/19438 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/web_contents_view_win.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/tab_contents/web_contents_view_win.cc b/chrome/browser/tab_contents/web_contents_view_win.cc
index 2c0ea3e..9f6ee1a 100644
--- a/chrome/browser/tab_contents/web_contents_view_win.cc
+++ b/chrome/browser/tab_contents/web_contents_view_win.cc
@@ -80,7 +80,7 @@ gfx::NativeView WebContentsViewWin::GetNativeView() const {
gfx::NativeView WebContentsViewWin::GetContentNativeView() const {
if (!web_contents_->render_widget_host_view())
return NULL;
- return web_contents_->render_widget_host_view()->GetPluginHWND();
+ return web_contents_->render_widget_host_view()->GetPluginNativeView();
}
void WebContentsViewWin::GetContainerBounds(gfx::Rect* out) const {
@@ -177,8 +177,9 @@ void WebContentsViewWin::SetPageTitle(const std::wstring& title) {
::SetWindowText(GetNativeView(), title.c_str());
// TODO(brettw) this call seems messy the way it reaches into the widget
// view, and I'm not sure it's necessary. Maybe we should just remove it.
- ::SetWindowText(web_contents_->render_widget_host_view()->GetPluginHWND(),
- title.c_str());
+ ::SetWindowText(
+ web_contents_->render_widget_host_view()->GetPluginNativeView(),
+ title.c_str());
}
}
@@ -373,7 +374,7 @@ RenderWidgetHostView* WebContentsViewWin::CreateNewWidgetInternal(
// TODO(brettw) this should not need to get the current RVHView from the
// WebContents. We should have it somewhere ourselves.
widget_view->set_parent_hwnd(
- web_contents_->render_widget_host_view()->GetPluginHWND());
+ web_contents_->render_widget_host_view()->GetPluginNativeView());
widget_view->set_close_on_deactivate(true);
widget_view->set_activatable(activatable);
@@ -519,7 +520,8 @@ void WebContentsViewWin::OnSetFocus(HWND window) {
// We NULL-check the render_view_host_ here because Windows can send us
// messages during the destruction process after it has been destroyed.
if (web_contents_->render_widget_host_view()) {
- HWND inner_hwnd = web_contents_->render_widget_host_view()->GetPluginHWND();
+ HWND inner_hwnd =
+ web_contents_->render_widget_host_view()->GetPluginNativeView();
if (::IsWindow(inner_hwnd))
::SetFocus(inner_hwnd);
}