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

Unified Diff: athena/home/home_card_impl.cc

Issue 465803002: Make the minimized home card not overlap activities on Athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed sadrul@'s comments + rebased 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 | « athena/athena.gyp ('k') | athena/main/athena_launcher.h » ('j') | 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 9a8526d8c36be6653adc847d33f9a8112121777a..04b649a72993f32b6d63ff20a98bd1b3486b247c 100644
--- a/athena/home/home_card_impl.cc
+++ b/athena/home/home_card_impl.cc
@@ -519,6 +519,12 @@ void HomeCardImpl::Init() {
aura::client::GetActivationClient(container->GetRootWindow());
if (activation_client_)
activation_client_->AddObserver(this);
+
+ int work_area_bottom_inset =
+ GetBoundsForState(GetNativeWindow()->bounds(),
+ HomeCard::VISIBLE_MINIMIZED).height();
+ ScreenManager::Get()->SetWorkAreaInsets(
+ gfx::Insets(0, 0, work_area_bottom_inset, 0));
}
void HomeCardImpl::InstallAccelerators() {
« no previous file with comments | « athena/athena.gyp ('k') | athena/main/athena_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698