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

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: fix tests 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
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_frame_view.cc » ('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 258534147dfbf7447a5ebe134998109375574b5a..c586dcd2651dda88c6bd9a506a8cf1f854097104 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_->GetPanelResizability(this);
}
const Extension* Panel::GetExtension() const {
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698