summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_frame_gtk.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/browser_frame_gtk.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/browser_frame_gtk.cc')
-rw-r--r--chrome/browser/views/frame/browser_frame_gtk.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/browser_frame_gtk.cc b/chrome/browser/views/frame/browser_frame_gtk.cc
index 2e7b734..c977c74 100644
--- a/chrome/browser/views/frame/browser_frame_gtk.cc
+++ b/chrome/browser/views/frame/browser_frame_gtk.cc
@@ -69,6 +69,10 @@ ThemeProvider* BrowserFrameGtk::GetThemeProviderForFrame() const {
return GetThemeProvider();
}
+bool BrowserFrameGtk::AlwaysUseNativeFrame() const {
+ return false;
+}
+
ThemeProvider* BrowserFrameGtk::GetThemeProvider() const {
return profile_->GetThemeProvider();
}
@@ -88,4 +92,3 @@ void BrowserFrameGtk::IsActiveChanged() {
views::WindowGtk::IsActiveChanged();
}
-