diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 18:40:39 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 18:40:39 +0000 |
commit | f353bede76468b89fc69f3b823e567e6da87d3f7 (patch) | |
tree | 0e3550b90e475f534a70406111e87d6adabebfca /views/window/window.cc | |
parent | 88e9e51b775961260b013139c965504749359b5c (diff) | |
download | chromium_src-f353bede76468b89fc69f3b823e567e6da87d3f7.zip chromium_src-f353bede76468b89fc69f3b823e567e6da87d3f7.tar.gz chromium_src-f353bede76468b89fc69f3b823e567e6da87d3f7.tar.bz2 |
Consolidate some more stuff in Window. PreferredSize obtaining.
Move GetShowState to BrowserFrameWin rather than needlessly delegate to BrowserView. This removes a small amount of WIndows-specific code from BrowserView.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/6627079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77306 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/window.cc')
-rw-r--r-- | views/window/window.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/window/window.cc b/views/window/window.cc index 5531cff..5fbb222 100644 --- a/views/window/window.cc +++ b/views/window/window.cc @@ -173,6 +173,10 @@ void Window::FrameTypeChanged() { //////////////////////////////////////////////////////////////////////////////// // Window, internal::NativeWindowDelegate implementation: +gfx::Size Window::GetPreferredSize() const { + return non_client_view_->GetPreferredSize(); +} + void Window::OnWindowDestroying() { non_client_view_->WindowClosing(); window_delegate_->WindowClosing(); |