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

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

Issue 10260028: Update Panel mininimize/restore button on strip and expansion state change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback changes 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 | « no previous file | chrome/browser/ui/panels/docked_panel_strip.cc » ('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 af1697e94f460def0167314acab2123c79d8903c..595e69a97bad9dd33fb6877020251b8fb79e2fcf 100644
--- a/chrome/browser/ui/panels/detached_panel_strip.cc
+++ b/chrome/browser/ui/panels/detached_panel_strip.cc
@@ -38,13 +38,13 @@ void DetachedPanelStrip::AddPanel(Panel* panel,
PositioningMask positioning_mask) {
// positioning_mask is ignored since the detached panel is free-floating.
DCHECK_NE(this, panel->panel_strip());
- panel->SetPanelStrip(this);
+ panel->set_panel_strip(this);
panels_.insert(panel);
}
void DetachedPanelStrip::RemovePanel(Panel* panel) {
DCHECK_EQ(this, panel->panel_strip());
- panel->SetPanelStrip(NULL);
+ panel->set_panel_strip(NULL);
panels_.erase(panel);
}
@@ -196,6 +196,7 @@ void DetachedPanelStrip::UpdatePanelOnStripChange(Panel* panel) {
Panel::USE_SYSTEM_ATTENTION));
panel->SetAlwaysOnTop(false);
panel->EnableResizeByMouse(true);
+ panel->UpdateMinimizeRestoreButtonVisibility();
}
void DetachedPanelStrip::OnPanelActiveStateChanged(Panel* panel) {
« no previous file with comments | « no previous file | chrome/browser/ui/panels/docked_panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698