diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 20:14:45 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 20:14:45 +0000 |
commit | ef85d47f1a76de6a2832607b7d80c45b5c662e65 (patch) | |
tree | b8a40f567be4abbe9f611ac4b9d9a509573c70de /chrome/browser/views | |
parent | 90b59b78afc61c68536a30afb526628c2891731b (diff) | |
download | chromium_src-ef85d47f1a76de6a2832607b7d80c45b5c662e65.zip chromium_src-ef85d47f1a76de6a2832607b7d80c45b5c662e65.tar.gz chromium_src-ef85d47f1a76de6a2832607b7d80c45b5c662e65.tar.bz2 |
Make WebContentsView portable by using the native view types.
Review URL: http://codereview.chromium.org/19632
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/find_bar_win.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/views/find_bar_win.cc b/chrome/browser/views/find_bar_win.cc index d58cf6c..e85bd3e 100644 --- a/chrome/browser/views/find_bar_win.cc +++ b/chrome/browser/views/find_bar_win.cc @@ -468,7 +468,8 @@ void FindBarWin::GetDialogBounds(gfx::Rect* bounds) { // fails, we return an empty rect. CRect browser_client_rect, browser_window_rect, content_window_rect; if (!::IsWindow(parent_hwnd_) || - !::GetWindowRect(parent_tab_->GetContentHWND(), &content_window_rect) || + !::GetWindowRect(parent_tab_->GetContentNativeView(), + &content_window_rect) || !::GetWindowRect(parent_hwnd_, &browser_window_rect) || !::GetClientRect(parent_hwnd_, &browser_client_rect) || !toolbar) { @@ -589,7 +590,7 @@ gfx::Rect FindBarWin::GetDialogPosition(gfx::Rect avoid_overlapping_rect) { // whereas the selection rect is relative to the page. RECT frame_rect = {0}, webcontents_rect = {0}; ::GetWindowRect(parent_hwnd_, &frame_rect); - ::GetWindowRect(parent_tab_->GetContainerHWND(), &webcontents_rect); + ::GetWindowRect(parent_tab_->GetNativeView(), &webcontents_rect); avoid_overlapping_rect.Offset(0, webcontents_rect.top - frame_rect.top); } |