Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: chrome/browser/ui/panels/panel.cc

Issue 12803011: Add BaseWindow::GetContentBounds() and use in WindowController::CreateWindowValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix osx build Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/views/extensions/native_app_window_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/views/extensions/native_app_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698