summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/opaque_frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/frame/opaque_frame.cc')
-rw-r--r--chrome/browser/views/frame/opaque_frame.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/opaque_frame.cc b/chrome/browser/views/frame/opaque_frame.cc
index 77260e1..64794c1 100644
--- a/chrome/browser/views/frame/opaque_frame.cc
+++ b/chrome/browser/views/frame/opaque_frame.cc
@@ -57,6 +57,18 @@ gfx::Rect OpaqueFrame::GetContentsBounds() const {
///////////////////////////////////////////////////////////////////////////////
// OpaqueFrame, BrowserFrame implementation:
+gfx::Rect OpaqueFrame::GetWindowBoundsForClientBounds(
+ const gfx::Rect& client_bounds) {
+ return GetOpaqueNonClientView()->GetWindowBoundsForClientBounds(
+ client_bounds);
+}
+
+void OpaqueFrame::SizeToContents(const gfx::Rect& contents_bounds) {
+ gfx::Rect window_bounds = GetOpaqueNonClientView()->
+ GetWindowBoundsForClientBounds(contents_bounds);
+ SetBounds(window_bounds);
+}
+
gfx::Rect OpaqueFrame::GetBoundsForTabStrip(TabStrip* tabstrip) const {
return GetOpaqueNonClientView()->GetBoundsForTabStrip(tabstrip);
}