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

Unified Diff: athena/home/home_card_impl.cc

Issue 332463002: Maximize only normal/popup window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | athena/wm/DEPS » ('j') | athena/wm/window_manager_impl.cc » ('J')
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 4e97e9ace898180a21afbeda25bdafe5989273ec..d7705a34f85506535ffafd28909d1f806608286f 100644
--- a/athena/home/home_card_impl.cc
+++ b/athena/home/home_card_impl.cc
@@ -87,7 +87,10 @@ class HomeCardImpl : public HomeCard, public AcceleratorHandler {
virtual bool OnAcceleratorFired(int command_id,
const ui::Accelerator& accelerator) OVERRIDE {
DCHECK_EQ(COMMAND_SHOW_HOME_CARD, command_id);
- home_card_widget_->Show();
+ if (home_card_widget_->IsVisible())
+ home_card_widget_->Hide();
+ else
+ home_card_widget_->Show();
return true;
}
« no previous file with comments | « no previous file | athena/wm/DEPS » ('j') | athena/wm/window_manager_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698