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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 7982016: Panel auto-resize for GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback changes. Created 9 years, 3 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/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 33b64b16d944a7fdd7c67d2491f69b203e1e220a..7ab1b0bc8728bebd9e0570b089aae075b2b54465 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1898,6 +1898,13 @@ void BrowserWindowGtk::UpdateCustomFrame() {
UpdateWindowShape(bounds_.width(), bounds_.height());
}
+gfx::Size BrowserWindowGtk::GetNonClientFrameSize() const {
+ return gfx::Size(window_container_->allocation.width -
+ render_area_floating_container_->allocation.width,
+ window_container_->allocation.height -
+ render_area_floating_container_->allocation.height);
+}
+
void BrowserWindowGtk::SaveWindowPosition() {
// Browser::SaveWindowPlacement is used for session restore.
ui::WindowShowState show_state = ui::SHOW_STATE_NORMAL;
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698