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

Unified Diff: chrome/browser/ui/panels/panel_manager.h

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix assert at the end of RenderWidget::Resize which fixes the tests on OSX. Created 8 years, 10 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_browsertest.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_manager.h
diff --git a/chrome/browser/ui/panels/panel_manager.h b/chrome/browser/ui/panels/panel_manager.h
index d02fe76d8b9d30282cdf61eed5ffd7ffea9a1d8a..73202a69d409c64181d701e48e798b71e0a2f2e3 100644
--- a/chrome/browser/ui/panels/panel_manager.h
+++ b/chrome/browser/ui/panels/panel_manager.h
@@ -54,8 +54,8 @@ class PanelManager : public AutoHidingDesktopBar::Observer {
// Invoked when the preferred window size of the given panel might need to
// get changed.
- void OnPreferredWindowSizeChanged(
- Panel* panel, const gfx::Size& preferred_window_size);
+ void OnWindowAutoResized(Panel* panel,
+ const gfx::Size& preferred_window_size);
// Resizes the panel. Explicitly setting the panel size is not allowed
// for panels that are auto-sized.
@@ -114,6 +114,11 @@ class PanelManager : public AutoHidingDesktopBar::Observer {
return interval;
}
+
+ bool auto_sizing_enabled() const {
+ return auto_sizing_enabled_;
+ }
+
#ifdef UNIT_TEST
static void shorten_time_intervals_for_testing() {
shorten_time_intervals_ = true;
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698