summaryrefslogtreecommitdiff
path: root/chromium/ash/wm/ash_activation_controller.h
blob: c3961f9a80fa07b5354c44d2c0921f4c747fa9f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_WM_ASH_ACTIVATION_CONTROLLER_H_
#define ASH_WM_ASH_ACTIVATION_CONTROLLER_H_

#include "ash/ash_export.h"
#include "ash/wm/activation_controller_delegate.h"
#include "base/compiler_specific.h"
#include "base/basictypes.h"

namespace ash {
namespace internal {

class ASH_EXPORT AshActivationController : public ActivationControllerDelegate {
 public:
  AshActivationController();
  virtual ~AshActivationController();

 private:
  // Overridden from ActivationControllerDelegate:
  virtual aura::Window* WillActivateWindow(aura::Window* window) OVERRIDE;
  virtual aura::Window* WillFocusWindow(aura::Window* window) OVERRIDE;

  // Returns a handle to the launcher on the active root window which will
  // be activated as fallback. Also notifies the launcher, so it can return
  // true from Launcher::CanActivate().
  aura::Window* PrepareToActivateLauncher();

  DISALLOW_COPY_AND_ASSIGN(AshActivationController);
};

}  // namespace internal
}  // namespace ash

#endif  // ASH_WM_ASH_ACTIVATION_CONTROLLER_H_