summaryrefslogtreecommitdiffstats
path: root/ash/wm/activation_controller_delegate.h
blob: 5cebfc6c8aed343cd9aad8d71e4a847e0b46e5e9 (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_ACTIVATION_CONTROLLER_DELEGATE_H_
#define ASH_WM_ACTIVATION_CONTROLLER_DELEGATE_H_

#include "ash/ash_export.h"

namespace aura {
class Window;
}

namespace ash {
namespace internal {

class ASH_EXPORT ActivationControllerDelegate {
 public:
  virtual ~ActivationControllerDelegate() {}

  // Called when the ActivationController is about to activate |window|. The
  // delegate gets an opportunity to take action and modify activation.
  // Modification occurs via the return value:
  // Returning |window| will activate |window|.
  // Returning some other window will activate that window instead.
  // Returning NULL will not change activation.
  virtual aura::Window* WillActivateWindow(aura::Window* window) = 0;

  // Called when the ActivationController is about to focus |window|. Returns
  // the window that should be focused instead.
  virtual aura::Window* WillFocusWindow(aura::Window* window) = 0;
};

}  // namespace internal
}  // namespace ash

#endif  // ASH_WM_ACTIVATION_CONTROLLER_DELEGATE_H_