summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tab_contents_container_view.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 20:20:47 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-09 20:20:47 +0000
commitd50cca412ec42dd9ccbc33cc38d1f7021a54b4fb (patch)
tree6cd4024bd99e5508b5e8226758924c1973210664 /chrome/browser/views/tab_contents_container_view.cc
parentc3826037cbcb22fe784a10589061eaf084818727 (diff)
downloadchromium_src-d50cca412ec42dd9ccbc33cc38d1f7021a54b4fb.zip
chromium_src-d50cca412ec42dd9ccbc33cc38d1f7021a54b4fb.tar.gz
chromium_src-d50cca412ec42dd9ccbc33cc38d1f7021a54b4fb.tar.bz2
Switch from HWNDs to NativeViews.
Review URL: http://codereview.chromium.org/21143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_contents_container_view.cc')
-rw-r--r--chrome/browser/views/tab_contents_container_view.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/views/tab_contents_container_view.cc b/chrome/browser/views/tab_contents_container_view.cc
index 3228dba..6c8e0c3 100644
--- a/chrome/browser/views/tab_contents_container_view.cc
+++ b/chrome/browser/views/tab_contents_container_view.cc
@@ -34,7 +34,7 @@ void TabContentsContainerView::SetTabContents(TabContents* tab_contents) {
if (tab_contents_) {
// TODO(brettw) should this move to HWNDView::Detach which is called below?
// It needs cleanup regardless.
- HWND container_hwnd = tab_contents_->GetContainerHWND();
+ HWND container_hwnd = tab_contents_->GetNativeView();
// Hide the contents before adjusting its parent to avoid a full desktop
// flicker.
@@ -47,7 +47,7 @@ void TabContentsContainerView::SetTabContents(TabContents* tab_contents) {
// Unregister the tab contents window from the FocusManager.
views::FocusManager::UninstallFocusSubclass(container_hwnd);
- HWND hwnd = tab_contents_->GetContentHWND();
+ HWND hwnd = tab_contents_->GetContentNativeView();
if (hwnd) {
// We may not have an HWND anymore, if the renderer crashed and we are
// displaying the sad tab for example.
@@ -80,8 +80,8 @@ void TabContentsContainerView::SetTabContents(TabContents* tab_contents) {
// TabContents window (for the WebContents case).
SetAssociatedFocusView(this);
- Attach(tab_contents->GetContainerHWND());
- HWND contents_hwnd = tab_contents_->GetContentHWND();
+ Attach(tab_contents->GetNativeView());
+ HWND contents_hwnd = tab_contents_->GetContentNativeView();
if (contents_hwnd)
FocusManager::InstallFocusSubclass(contents_hwnd, this);
@@ -151,7 +151,7 @@ views::View* TabContentsContainerView::GetFocusTraversableParentView() {
void TabContentsContainerView::Focus() {
if (tab_contents_ && !tab_contents_->GetContentsRootView()) {
// Set the native focus on the actual content of the tab.
- ::SetFocus(tab_contents_->GetContentHWND());
+ ::SetFocus(tab_contents_->GetContentNativeView());
}
}