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

Side by Side Diff: ash/wm/ash_activation_controller.h

Issue 11451002: Focus launcher if spoken feedback is enabled and no other windows visible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added end to end tests. Created 8 years 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 | Annotate | Revision Log
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 #ifndef ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ 5 #ifndef ASH_WM_ASH_ACTIVATION_CONTROLLER_H_
6 #define ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ 6 #define ASH_WM_ASH_ACTIVATION_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h"
8 #include "ash/wm/activation_controller_delegate.h" 9 #include "ash/wm/activation_controller_delegate.h"
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 12
12 namespace ash { 13 namespace ash {
13 namespace internal { 14 namespace internal {
14 15
15 class AshActivationController : public ActivationControllerDelegate { 16 class ASH_EXPORT AshActivationController : public ActivationControllerDelegate {
16 public: 17 public:
17 AshActivationController(); 18 AshActivationController();
18 virtual ~AshActivationController(); 19 virtual ~AshActivationController();
19 20
20 private: 21 private:
21 // Overridden from ActivationControllerDelegate: 22 // Overridden from ActivationControllerDelegate:
22 virtual aura::Window* WillActivateWindow(aura::Window* window) OVERRIDE; 23 virtual aura::Window* WillActivateWindow(aura::Window* window) OVERRIDE;
23 virtual aura::Window* WillFocusWindow(aura::Window* window) OVERRIDE; 24 virtual aura::Window* WillFocusWindow(aura::Window* window) OVERRIDE;
24 25
26 // Returns a handle to the launcher on the active root window which will
27 // be activated as fallback. Also notifies the launcher, so it can return
28 // true from Launcher::CanActivate().
29 aura::Window* PrepareToActivateLauncher();
30
25 DISALLOW_COPY_AND_ASSIGN(AshActivationController); 31 DISALLOW_COPY_AND_ASSIGN(AshActivationController);
26 }; 32 };
27 33
28 } // namespace internal 34 } // namespace internal
29 } // namespace ash 35 } // namespace ash
30 36
31 #endif // ASH_WM_ASH_ACTIVATION_CONTROLLER_H_ 37 #endif // ASH_WM_ASH_ACTIVATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698