Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / aura / client / focus_change_observer.h
blob46db114b20c0d25298e4c33625a6ba7864244f26
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
3 // found in the LICENSE file.
5 #ifndef UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_
6 #define UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_
8 #include "ui/aura/aura_export.h"
10 namespace aura {
11 class Window;
12 namespace client {
14 // TODO(beng): this interface will be OBSOLETE by FocusChangeEvent.
15 class AURA_EXPORT FocusChangeObserver {
16 public:
17 // Called when focus moves from |lost_focus| to |gained_focus|.
18 virtual void OnWindowFocused(Window* gained_focus, Window* lost_focus) = 0;
20 protected:
21 virtual ~FocusChangeObserver() {}
24 AURA_EXPORT FocusChangeObserver* GetFocusChangeObserver(Window* window);
25 AURA_EXPORT void SetFocusChangeObserver(
26 Window* window,
27 FocusChangeObserver* focus_change_observer);
30 } // namespace client
31 } // namespace aura
33 #endif // UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_