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

Unified Diff: athena/wm/window_manager_impl.cc

Issue 394043002: athena: Add a minimized state for the home-card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-nits Created 6 years, 5 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
« athena/wm/DEPS ('K') | « athena/wm/public/window_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/wm/window_manager_impl.cc
diff --git a/athena/wm/window_manager_impl.cc b/athena/wm/window_manager_impl.cc
index 589da390733ec1ecf3999c24c0b16278b8b5d35c..383f4bec619579d4d077a24e7ed4fcdd218f9a32 100644
--- a/athena/wm/window_manager_impl.cc
+++ b/athena/wm/window_manager_impl.cc
@@ -4,6 +4,7 @@
#include "athena/wm/public/window_manager.h"
+#include "athena/home/public/home_card.h"
#include "athena/screen/public/screen_manager.h"
#include "athena/wm/window_overview_mode.h"
#include "base/logging.h"
@@ -37,6 +38,8 @@ class WindowManagerImpl : public WindowManager,
CHECK_EQ(container_.get(), window->parent());
container_->StackChildAtTop(window);
overview_.reset();
+
+ HomeCard::Get()->SetState(HomeCard::VISIBLE_MINIMIZED);
}
// aura::WindowObserver
@@ -148,4 +151,10 @@ void WindowManager::Shutdown() {
DCHECK(!instance);
}
+// static
+WindowManager* WindowManager::GetInstance() {
+ DCHECK(instance);
+ return instance;
+}
+
} // namespace athena
« athena/wm/DEPS ('K') | « athena/wm/public/window_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698