diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-27 23:49:52 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-27 23:49:52 +0000 |
commit | 96b74c572398e400c58cb6255d61394eacebf270 (patch) | |
tree | 0e05bd4dfe536c2f004622cad895d52e03d84f22 /chrome/views/non_client_view.cc | |
parent | 28c4873898e63456c2c913a193271dea8a1360c3 (diff) | |
download | chromium_src-96b74c572398e400c58cb6255d61394eacebf270.zip chromium_src-96b74c572398e400c58cb6255d61394eacebf270.tar.gz chromium_src-96b74c572398e400c58cb6255d61394eacebf270.tar.bz2 |
Flatten CustomFrameWindow functionality onto Window.
This is not new code, just copying code into Window. None of the added codepaths are executed yet because UseNativeFrame is always true, so all custom frame windows continue to use CustomFrameWindow instead.
Review URL: http://codereview.chromium.org/27291
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/non_client_view.cc')
-rw-r--r-- | chrome/views/non_client_view.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/non_client_view.cc b/chrome/views/non_client_view.cc index 11d4fb0..bb89cb5 100644 --- a/chrome/views/non_client_view.cc +++ b/chrome/views/non_client_view.cc @@ -27,6 +27,10 @@ void NonClientView::WindowClosing() { client_view_->WindowClosing(); } +bool NonClientView::UseNativeFrame() const { + return true; +} + gfx::Rect NonClientView::CalculateClientAreaBounds(int width, int height) const { return gfx::Rect(); |