summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/glass_browser_frame_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 21:19:53 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 21:19:53 +0000
commitd7ef11bbc6ea0545ab00e29fe006a2e1de29dde9 (patch)
treec4e96e45ee51017d02cc5705191ebe0e01659e7c /chrome/browser/views/frame/glass_browser_frame_view.cc
parentd766882c913b272cc2db478d7640a317d838ebad (diff)
downloadchromium_src-d7ef11bbc6ea0545ab00e29fe006a2e1de29dde9.zip
chromium_src-d7ef11bbc6ea0545ab00e29fe006a2e1de29dde9.tar.gz
chromium_src-d7ef11bbc6ea0545ab00e29fe006a2e1de29dde9.tar.bz2
Change the way the NonClientView handles forcing the native frame for popups/app windows.
Rather than carrying state in a force_native_frame_ member it uses a virtual method AlwaysUseNativeFrame analogous to AlwaysUseCustomFrame. This makes me a little happier. BUG=none TEST=On a vista capable system, test that when a theme is installed, popups and app frames are rendered with the native frame. Test that constrained windows (e.g. HTTP basic auth) are rendered with the custom frame. Without a theme installed, test that all windows have a native frame except constrained windows. With Vista Basic system setting, verify that all windows have a custom frame, including constrained windows. Review URL: http://codereview.chromium.org/200146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/glass_browser_frame_view.cc')
-rw-r--r--chrome/browser/views/frame/glass_browser_frame_view.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/glass_browser_frame_view.cc b/chrome/browser/views/frame/glass_browser_frame_view.cc
index d7c8139..a765416 100644
--- a/chrome/browser/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/views/frame/glass_browser_frame_view.cc
@@ -118,6 +118,10 @@ gfx::Rect GlassBrowserFrameView::GetBoundsForClientView() const {
return client_view_bounds_;
}
+bool GlassBrowserFrameView::AlwaysUseNativeFrame() const {
+ return frame_->AlwaysUseNativeFrame();
+}
+
gfx::Rect GlassBrowserFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {
HWND hwnd = frame_->GetWindow()->GetNativeWindow();