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

Unified Diff: chrome/browser/ui/panels/detached_panel_strip.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/detached_panel_strip.h ('k') | chrome/browser/ui/panels/docked_panel_strip.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/detached_panel_strip.cc
diff --git a/chrome/browser/ui/panels/detached_panel_strip.cc b/chrome/browser/ui/panels/detached_panel_strip.cc
index 7ebbb77eb43187b8cd505fdb71e3ceeaaa26b175..72fccf050888fcab293cfbf08dc7d2b56c6cd392 100644
--- a/chrome/browser/ui/panels/detached_panel_strip.cc
+++ b/chrome/browser/ui/panels/detached_panel_strip.cc
@@ -163,14 +163,14 @@ void DetachedPanelStrip::EndDraggingPanelWithinStrip(Panel* panel,
bool aborted) {
}
-bool DetachedPanelStrip::CanResizePanel(const Panel* panel) const {
- return true;
+panel::Resizability DetachedPanelStrip::GetPanelResizability(
+ const Panel* panel) const {
+ return panel::RESIZABLE_ALL_SIDES;
}
void DetachedPanelStrip::OnPanelResizedByMouse(Panel* panel,
const gfx::Rect& new_bounds) {
DCHECK_EQ(this, panel->panel_strip());
- panel->set_restored_size(new_bounds.size());
panel->SetPanelBoundsInstantly(new_bounds);
}
« no previous file with comments | « chrome/browser/ui/panels/detached_panel_strip.h ('k') | chrome/browser/ui/panels/docked_panel_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698