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

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

Issue 10066032: Enable user resizing for docked Panels (GTK and Mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor cleanup Created 8 years, 8 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.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 258534147dfbf7447a5ebe134998109375574b5a..c6f48b6fef3bc780e30d21857f4f83d0ac49d758 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -85,8 +85,11 @@ bool Panel::draggable() const {
return panel_strip_ && panel_strip_->CanDragPanel(this);
}
-bool Panel::CanResizeByMouse() const {
- return panel_strip_ && panel_strip_->CanResizePanel(this);
+panel::Resizability Panel::CanResizeByMouse() const {
+ if (!panel_strip_)
+ return panel::NOT_RESIZABLE;
+
+ return panel_strip_->CanResizePanel(this);
}
const Extension* Panel::GetExtension() const {

Powered by Google App Engine
This is Rietveld 408576698