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

Side by Side Diff: athena/home/home_card_impl.cc

Issue 566753003: Hide the virtual keyboard when entering to overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | athena/home/home_card_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "athena/home/home_card_impl.h" 5 #include "athena/home/home_card_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <limits> 8 #include <limits>
9 9
10 #include "athena/env/public/athena_env.h" 10 #include "athena/env/public/athena_env.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 GetBoundsForState(screen_bounds, from_state), 400 GetBoundsForState(screen_bounds, from_state),
401 GetBoundsForState(screen_bounds, to_state))); 401 GetBoundsForState(screen_bounds, to_state)));
402 402
403 home_card_view_->SetStateProgress(from_state, to_state, progress); 403 home_card_view_->SetStateProgress(from_state, to_state, progress);
404 404
405 // TODO(mukai): signals the update to the window manager so that it shows the 405 // TODO(mukai): signals the update to the window manager so that it shows the
406 // intermediate visual state of overview mode. 406 // intermediate visual state of overview mode.
407 } 407 }
408 408
409 void HomeCardImpl::OnOverviewModeEnter() { 409 void HomeCardImpl::OnOverviewModeEnter() {
410 if (state_ == VISIBLE_MINIMIZED) 410 if (state_ == HIDDEN || state_ == VISIBLE_MINIMIZED)
411 SetState(VISIBLE_BOTTOM); 411 SetState(VISIBLE_BOTTOM);
412 } 412 }
413 413
414 void HomeCardImpl::OnOverviewModeExit() { 414 void HomeCardImpl::OnOverviewModeExit() {
415 SetState(VISIBLE_MINIMIZED); 415 SetState(VISIBLE_MINIMIZED);
416 } 416 }
417 417
418 void HomeCardImpl::OnSplitViewModeEnter() { 418 void HomeCardImpl::OnSplitViewModeEnter() {
419 } 419 }
420 420
(...skipping 22 matching lines...) Expand all
443 instance = NULL; 443 instance = NULL;
444 } 444 }
445 445
446 // static 446 // static
447 HomeCard* HomeCard::Get() { 447 HomeCard* HomeCard::Get() {
448 DCHECK(instance); 448 DCHECK(instance);
449 return instance; 449 return instance;
450 } 450 }
451 451
452 } // namespace athena 452 } // namespace athena
OLDNEW
« no previous file with comments | « no previous file | athena/home/home_card_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698