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

Unified Diff: athena/home/home_card_impl.cc

Issue 435293003: Don't activate minimized/bottom home card (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/home_card_impl.cc
diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc
index 9a714144195f73a1c4abd26d85e296614ef7cd14..a98cb201c213b5f970a31c351f471d4c74d79746 100644
--- a/athena/home/home_card_impl.cc
+++ b/athena/home/home_card_impl.cc
@@ -301,7 +301,10 @@ void HomeCardImpl::SetState(HomeCard::State state) {
if (state_ == HIDDEN) {
home_card_widget_->Hide();
} else {
- home_card_widget_->Show();
+ if (state_ == VISIBLE_CENTERED)
+ home_card_widget_->Show();
+ else
+ home_card_widget_->ShowInactive();
home_card_view_->SetState(state);
layout_manager_->Layout();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698