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

Unified Diff: ash/focus_cycler.cc

Issue 9406031: Makes it so the launcher only gets focus when using the keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 years, 10 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 | « ash/focus_cycler.h ('k') | ash/launcher/app_launcher_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/focus_cycler.cc
diff --git a/ash/focus_cycler.cc b/ash/focus_cycler.cc
index 25f74f3b32c2b56986f09cba65108d737d7a8b4d..eccb99206752a4b506dd3f193ee0628c337618a6 100644
--- a/ash/focus_cycler.cc
+++ b/ash/focus_cycler.cc
@@ -17,7 +17,7 @@ namespace ash {
namespace internal {
-FocusCycler::FocusCycler() {
+FocusCycler::FocusCycler() : widget_activating_(NULL) {
}
FocusCycler::~FocusCycler() {
@@ -71,7 +71,9 @@ void FocusCycler::RotateFocus(Direction direction) {
views::AccessiblePaneView* view =
static_cast<views::AccessiblePaneView*>(widget->GetContentsView());
if (view->SetPaneFocusAndFocusDefault()) {
+ widget_activating_ = widget;
widget->Activate();
+ widget_activating_ = NULL;
if (widget->IsActive())
break;
}
« no previous file with comments | « ash/focus_cycler.h ('k') | ash/launcher/app_launcher_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698