#ifndef UI_AURA_TEST_TEST_FOCUS_CLIENT_H_
#define UI_AURA_TEST_TEST_FOCUS_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/scoped_observer.h"
#include "ui/aura/client/focus_client.h"
#include "ui/aura/window_observer.h"
namespace aura {
namespace test {
class TestFocusClient : public client::FocusClient,
public WindowObserver {
public:
TestFocusClient();
virtual ~TestFocusClient();
private:
virtual void AddObserver(client::FocusChangeObserver* observer) OVERRIDE;
virtual void RemoveObserver(client::FocusChangeObserver* observer) OVERRIDE;
virtual void FocusWindow(Window* window) OVERRIDE;
virtual void ResetFocusWithinActiveWindow(Window* window) OVERRIDE;
virtual Window* GetFocusedWindow() OVERRIDE;
virtual void OnWindowDestroying(Window* window) OVERRIDE;
Window* focused_window_;
ScopedObserver<Window, WindowObserver> observer_manager_;
DISALLOW_COPY_AND_ASSIGN(TestFocusClient);
};
}
}
#endif