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

Side by Side Diff: ash/focus_cycler.cc

Issue 12618014: Switch Next Window Key functionality (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gesture change Created 7 years, 9 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 | « ash/accelerators/accelerator_controller.cc ('k') | ash/shelf/shelf_layout_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/focus_cycler.h" 5 #include "ash/focus_cycler.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/window_cycle_controller.h" 8 #include "ash/wm/window_cycle_controller.h"
9 #include "ui/aura/client/activation_client.h" 9 #include "ui/aura/client/activation_client.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/views/accessible_pane_view.h" 11 #include "ui/views/accessible_pane_view.h"
12 #include "ui/views/focus/focus_search.h" 12 #include "ui/views/focus/focus_search.h"
13 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
14 14
15 namespace ash { 15 namespace ash {
16 16
17 namespace { 17 namespace {
18 18
19 bool HasFocusableWindow() { 19 bool HasFocusableWindow() {
20 return !WindowCycleController::BuildWindowList(NULL).empty(); 20 return !WindowCycleController::BuildWindowList(NULL, false).empty();
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24 24
25 namespace internal { 25 namespace internal {
26 26
27 FocusCycler::FocusCycler() : widget_activating_(NULL) { 27 FocusCycler::FocusCycler() : widget_activating_(NULL) {
28 } 28 }
29 29
30 FocusCycler::~FocusCycler() { 30 FocusCycler::~FocusCycler() {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // will be taken care of by the widget activation. 80 // will be taken care of by the widget activation.
81 widget_activating_ = widget; 81 widget_activating_ = widget;
82 widget->Activate(); 82 widget->Activate();
83 widget_activating_ = NULL; 83 widget_activating_ = NULL;
84 return widget->IsActive(); 84 return widget->IsActive();
85 } 85 }
86 86
87 } // namespace internal 87 } // namespace internal
88 88
89 } // namespace ash 89 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698