summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/aero_glass_frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/frame/aero_glass_frame.cc')
-rw-r--r--chrome/browser/views/frame/aero_glass_frame.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/aero_glass_frame.cc b/chrome/browser/views/frame/aero_glass_frame.cc
index b3db14e..4154cc4 100644
--- a/chrome/browser/views/frame/aero_glass_frame.cc
+++ b/chrome/browser/views/frame/aero_glass_frame.cc
@@ -49,7 +49,7 @@ static const int kToolbarOverlapVertOffset = 3;
static const int kDwmBorderSize = 1;
///////////////////////////////////////////////////////////////////////////////
-// OpaqueFrame, public:
+// AeroGlassFrame, public:
AeroGlassFrame::AeroGlassFrame(BrowserView2* browser_view)
: Window(browser_view),
@@ -88,6 +88,10 @@ int AeroGlassFrame::GetMinimizeButtonOffset() const {
///////////////////////////////////////////////////////////////////////////////
// AeroGlassFrame, BrowserFrame implementation:
+gfx::Rect AeroGlassFrame::GetBoundsForTabStrip(TabStrip* tabstrip) const {
+ return GetAeroGlassNonClientView()->GetBoundsForTabStrip(tabstrip);
+}
+
ChromeViews::Window* AeroGlassFrame::GetWindow() {
return this;
}
@@ -171,3 +175,8 @@ void AeroGlassFrame::UpdateDWMFrame() {
kDwmBorderSize + bottom_edge.height() };
DwmExtendFrameIntoClientArea(GetHWND(), &margins);
}
+
+AeroGlassNonClientView* AeroGlassFrame::GetAeroGlassNonClientView() const {
+ // We can safely assume that this conversion is true.
+ return static_cast<AeroGlassNonClientView*>(non_client_view_);
+}