From c80c563f3f32e49ce0087d899accf6a77de09ba6 Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Fri, 10 Oct 2008 20:34:35 +0000 Subject: Start splitting out view-related stuff from WebContents into a new class WebContentsViewWin, accessed through an abstract interface WebContentsView. This is incomplete but is a good start. There are still a bunch of pass-throughs required for the TabContents overrides. These won't be able to be cleaned up until we kill TabContents. Review URL: http://codereview.chromium.org/7205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3243 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/tab_contents.cc') diff --git a/chrome/browser/tab_contents.cc b/chrome/browser/tab_contents.cc index 4fa4dfe..f323524 100644 --- a/chrome/browser/tab_contents.cc +++ b/chrome/browser/tab_contents.cc @@ -13,6 +13,7 @@ #include "chrome/common/l10n_util.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" +#include "chrome/views/hwnd_view_container.h" #include "chrome/views/native_scroll_bar.h" #include "chrome/views/root_view.h" #include "chrome/views/view.h" @@ -349,6 +350,7 @@ void TabContents::StoreFocus() { // If the focus was on the page, explicitly clear the focus so that we // don't end up with the focused HWND not part of the window hierarchy. + // TODO(brettw) this should move to the view somehow. HWND container_hwnd = GetContainerHWND(); if (container_hwnd) { ChromeViews::View* focused_view = focus_manager->GetFocusedView(); -- cgit v1.1