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"
14 // TODO(beng): this interface will be OBSOLETE by FocusChangeEvent.
15 class AURA_EXPORT FocusChangeObserver
{
17 // Called when focus moves from |lost_focus| to |gained_focus|.
18 virtual void OnWindowFocused(Window
* gained_focus
, Window
* lost_focus
) = 0;
21 virtual ~FocusChangeObserver() {}
24 AURA_EXPORT FocusChangeObserver
* GetFocusChangeObserver(Window
* window
);
25 AURA_EXPORT
void SetFocusChangeObserver(
27 FocusChangeObserver
* focus_change_observer
);
33 #endif // UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_