#ifndef ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_
#define ASH_ACCELERATORS_NESTED_DISPATCHER_CONTROLLER_H_
#include "ash/ash_export.h"
#include "base/callback.h"
#include "base/message_loop/message_loop.h"
#include "ui/wm/public/dispatcher_client.h"
namespace ash {
class ASH_EXPORT NestedDispatcherController
: public aura::client::DispatcherClient {
public:
NestedDispatcherController();
virtual ~NestedDispatcherController();
virtual void RunWithDispatcher(
base::MessagePumpDispatcher* dispatcher) OVERRIDE;
virtual void QuitNestedMessageLoop() OVERRIDE;
private:
base::Closure quit_closure_;
DISALLOW_COPY_AND_ASSIGN(NestedDispatcherController);
};
}
#endif