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

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

Issue 9181005: Allow resizing a panel using chrome.windows.update() extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add forgotten test file. Created 8 years, 11 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
Index: chrome/browser/ui/panels/panel_manager.cc
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc
index e802f18c85e464a0ce63de0d0bdaab88f934399a..291d0c79af0c53c4273966fee1f9ef54e1f83abd 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -199,10 +199,11 @@ void PanelManager::OnPreferredWindowSizeChanged(
void PanelManager::ResizePanel(Panel* panel, const gfx::Size& new_size) {
// Explicit resizing is not allowed for auto-resizable panels for now.
// http://crbug.com/109343
- if (panel->auto_resizable())
+ if (panel->auto_resizable()) {
+ LOG(INFO) << "Resizing auto-resizable Panels is not supported yet.";
return;
+ }
panel_strip_->OnWindowSizeChanged(panel, new_size);
-
}
bool PanelManager::ShouldBringUpTitlebars(int mouse_x, int mouse_y) const {
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/test/data/extensions/api_test/window_update/resize/blank.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698