summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/aero_glass_non_client_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/frame/aero_glass_non_client_view.cc')
-rw-r--r--chrome/browser/views/frame/aero_glass_non_client_view.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.cc b/chrome/browser/views/frame/aero_glass_non_client_view.cc
index ecb80d6..82bccfc 100644
--- a/chrome/browser/views/frame/aero_glass_non_client_view.cc
+++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc
@@ -158,6 +158,14 @@ gfx::Rect AeroGlassNonClientView::CalculateClientAreaBounds(int width,
std::max(0, height - top_height - border_thickness));
}
+gfx::Size AeroGlassNonClientView::CalculateWindowSizeForClientSize(
+ int width,
+ int height) const {
+ int border_thickness = NonClientBorderThickness();
+ return gfx::Size(width + (2 * border_thickness),
+ height + NonClientTopBorderHeight() + border_thickness);
+}
+
CPoint AeroGlassNonClientView::GetSystemMenuPoint() const {
CPoint offset;
MapWindowPoints(GetWidget()->GetHWND(), HWND_DESKTOP, &offset, 1);