summaryrefslogtreecommitdiffstats
path: root/views/window
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-16 20:12:58 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-16 20:12:58 +0000
commitd7010df4c6fff92026bdfe1a26156ce3d3387c87 (patch)
tree2c95caabcc66fb35b9bc425494468d2ece5bf77e /views/window
parent5f612bb11b7c21a1e654e319bdf2170aecffb39e (diff)
downloadchromium_src-d7010df4c6fff92026bdfe1a26156ce3d3387c87.zip
chromium_src-d7010df4c6fff92026bdfe1a26156ce3d3387c87.tar.gz
chromium_src-d7010df4c6fff92026bdfe1a26156ce3d3387c87.tar.bz2
We were returning the wrong value of ShouldUseNativeFrame for popup windows when a theme is installed and the rest of the desktop is in glass mode.
We were returning false instead of true, even though themes are applied only to tabbed browser windows. This means that even though the window was rendered using the glass frame (due to a correct check somewhere else) the widget calculated the client size incorrectly. http://crbug.com/80774 TEST=none Review URL: http://codereview.chromium.org/7015057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window')
-rw-r--r--views/window/window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/window/window.h b/views/window/window.h
index 191aba4..7bb4c26 100644
--- a/views/window/window.h
+++ b/views/window/window.h
@@ -163,7 +163,7 @@ class Window : public Widget,
gfx::NativeWindow GetNativeWindow() const;
// Whether we should be using a native frame.
- bool ShouldUseNativeFrame() const;
+ virtual bool ShouldUseNativeFrame() const;
// Tell the window that something caused the frame type to change.
void FrameTypeChanged();