Index: chrome/browser/ui/panels/panel.cc |
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc |
index 848265089c3e099610eade65dfa0cab01ec5dd36..7670c337d8dd7575fe85cc4dd3155c1732169607 100644 |
--- a/chrome/browser/ui/panels/panel.cc |
+++ b/chrome/browser/ui/panels/panel.cc |
@@ -257,6 +257,12 @@ gfx::Rect Panel::GetBounds() const { |
return native_panel_->GetPanelBounds(); |
} |
+gfx::Rect Panel::GetContentBounds() const { |
+ gfx::Rect bounds = native_panel_->GetPanelBounds(); |
+ gfx::Size sz = native_panel_->ContentSizeFromWindowSize(bounds.size()); |
+ return gfx::Rect(bounds.x(), bounds.y(), sz.width(), sz.height()); |
+} |
+ |
void Panel::Show() { |
if (manager()->display_settings_provider()->is_full_screen() || !collection_) |
return; |