| Index: chrome/browser/ui/panels/docked_panel_strip.cc
|
| diff --git a/chrome/browser/ui/panels/docked_panel_strip.cc b/chrome/browser/ui/panels/docked_panel_strip.cc
|
| index 29a15fe81e8def190068bd97a0ff5c2afb96787b..8bcbfe7e66d5fc06dee0d8041ff4c3a9eeb02438 100644
|
| --- a/chrome/browser/ui/panels/docked_panel_strip.cc
|
| +++ b/chrome/browser/ui/panels/docked_panel_strip.cc
|
| @@ -434,14 +434,16 @@ void DockedPanelStrip::EndDraggingPanelWithinStrip(Panel* panel, bool aborted) {
|
| RefreshLayout();
|
| }
|
|
|
| -bool DockedPanelStrip::CanResizePanel(const Panel* panel) const {
|
| - return false;
|
| +panel::Resizability DockedPanelStrip::CanResizePanel(
|
| + const Panel* panel) const {
|
| + return panel->expansion_state() == Panel::EXPANDED ?
|
| + panel::ALL_SIDES_EXCEPT_BOTTOM : panel::NOT_RESIZABLE;
|
| }
|
|
|
| void DockedPanelStrip::OnPanelResizedByMouse(Panel* panel,
|
| const gfx::Rect& new_bounds) {
|
| DCHECK_EQ(this, panel->panel_strip());
|
| - NOTREACHED();
|
| + panel->SetPanelBoundsInstantly(new_bounds);
|
| }
|
|
|
|
|
| @@ -886,5 +888,5 @@ void DockedPanelStrip::UpdatePanelOnStripChange(Panel* panel) {
|
| panel->set_attention_mode(Panel::USE_PANEL_ATTENTION);
|
| panel->SetAppIconVisibility(true);
|
| panel->SetAlwaysOnTop(true);
|
| - panel->EnableResizeByMouse(false);
|
| + panel->EnableResizeByMouse(true);
|
| }
|
|
|