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

Unified Diff: chrome/browser/ui/panels/docked_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 | « chrome/browser/ui/panels/detached_panel_strip.cc ('k') | chrome/browser/ui/panels/native_panel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 db2a1dbfb464cd032cb14be9c1cb56bdb881ff75..1b116d33ad030247448cecf7bf35e50469e854ed 100644
--- a/chrome/browser/ui/panels/docked_panel_strip.cc
+++ b/chrome/browser/ui/panels/docked_panel_strip.cc
@@ -99,7 +99,7 @@ void DockedPanelStrip::AddPanel(Panel* panel,
DCHECK_EQ(Panel::EXPANDED, panel->expansion_state());
DCHECK_NE(this, panel->panel_strip());
- panel->SetPanelStrip(this);
+ panel->set_panel_strip(this);
bool known_position = (positioning_mask & KNOWN_POSITION) != 0;
bool update_bounds = (positioning_mask & DO_NOT_UPDATE_BOUNDS) == 0;
@@ -217,7 +217,7 @@ int DockedPanelStrip::GetRightMostAvailablePosition() const {
void DockedPanelStrip::RemovePanel(Panel* panel) {
DCHECK_EQ(this, panel->panel_strip());
- panel->SetPanelStrip(NULL);
+ panel->set_panel_strip(NULL);
// Removing an element from the list will invalidate the iterator that refers
// to it. We need to update the iterator in that case.
@@ -883,9 +883,9 @@ void DockedPanelStrip::UpdatePanelOnStripChange(Panel* panel) {
gfx::Size(max_panel_width, max_panel_height));
}
panel->set_attention_mode(Panel::USE_PANEL_ATTENTION);
- panel->SetAppIconVisibility(true);
panel->SetAlwaysOnTop(true);
panel->EnableResizeByMouse(true);
+ panel->UpdateMinimizeRestoreButtonVisibility();
}
void DockedPanelStrip::OnPanelActiveStateChanged(Panel* panel) {
« no previous file with comments | « chrome/browser/ui/panels/detached_panel_strip.cc ('k') | chrome/browser/ui/panels/native_panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698