Use views::View::GetPreferredSize instead of BaseTabStrip::GetPreferredSize
We call GetPreferredSize on the tabstrip object, but we were doing so using the BaseTabStrip interface rather than the more general views::View interface. This CL changes it so that we refer to the tabstrip object by its views::View interface.
By asking the container to plan its layout given an arbitrary view rather than a specific BaseTabStrip, the code is more general and less dependent on changes in the BaseTabStrip class. I just think it's more tidy to have containers know as little as possible about of the intimate details about their contained items. It's cleaner and simpler. We don't need to know about the BaseTabStrip class in the FrameView class. We don't need to include the extra header.
Follows 6312196.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6465025
Patch from Chad Faragher <[email protected]>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74832 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed